-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable downsampling of basemap in facets? #895
Comments
The option However, I agree that the maps should be as sharp as possible. The current value is You can play around with this value as follows: tmap_options(raster.max.cells = 1e6)
tm_shape(World[169,]) +
tm_borders(col = "red") +
tm_basemap("Esri.WorldImagery", zoom = 4) |
My general thinking is that |
Sorry for the late response. I Agree with @Nowosad. For facet plots increasing it makes a big difference. For single plots, using |
I see the argument, but I don't fully agree. Imho, there is a use-case balance between:
I see faceting as a powerful tool for exploration. However, if the running time for printing a basemap is say 3 seconds per map, the running time of say 10 facets is too much (let alone if there are many more facets), unless the aim is to produce print-ready HQ maps. Therefore, setting The difficulty is that the sharpness not only depends on the (downsampled) resolution, but also on the screen and the source of the files. (E.g., is the text in your application still not sharp when setting Just an idea: we could add something like this: tmap_prioritize("speed") # downscaling to make sure the running time is below x seconds
tmap_prioritize("balance") # something in between
tmap_prioritize("quality") # no downscaling What do you think? |
I'm using
tm_basemap("Esri.WorldGrayCanvas", zoom = 4)
as a basemap. The resolution on large geographies is ok-isch. When usingtm_facet_wrap()
, the resolution of the basemap decreases, and tmap displays a message"SpatRaster object downsampled to 204 by 224 cells."
. I understand that this may be a good idea for memory reasons, but in many cases it really makes the basemap unintelligible. It would be great if the resolution of the map could be increased in general, and if it could be kept for facets. Thanks!The text was updated successfully, but these errors were encountered: