r - tm_facets option as.layers = TRUE disabled in tmap v4? - Stack Overflow

The code below used to produce grid maps for each provinceanda map where each province is its own la

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信