The code below used to produce grid maps for each province and a map where each province is its own layer respectively. Has the option "as.layers = TRUE" been disabled in tmap v4?
library(tmap)
library(sf)
data(NLD_muni)
# Grid maps for each province
tmap_mode("view")
tm_shape(NLD_muni) +
tm_polygons("employment_rate") +
tm_facets("province", as.layers = FALSE)
# Map where each province is its own layer
tmap_mode("view")
tm_shape(NLD_muni) +
tm_polygons("employment_rate") +
tm_facets("province", as.layers = TRUE)
I'd like to know if this is a bug in tmap v4, or if I need to update my tmap v3 code to get the previous result where each province is displayed as an interactive layer.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744397284a4572206.html
评论列表(0条)