我正在尝试绘制一张没有“框边框”的地图。
有人知道如何解决tmap包装问题而不打印“外框边框”吗?- 不要混淆,tm_borders因为它是绘制地图中多边形边界的线段。
这是我的示例代码:
tm_obj <- tm_shape(area_spdf) +
tm_fill(col = var, palette = "Blues", legend.show = FALSE) +
tm_borders(col = "burlywood4", lwd = 0.25)`
save_tmap(tm = tm_obj,
filename = paste("plot_tm_output_", var, ".png", sep = ""))`
Run Code Online (Sandbox Code Playgroud)
您可以使用tm_layout来指定不画框:
tm_obj <- tm_shape(area_spdf) +
tm_fill(col = var, palette = "Blues", legend.show = FALSE) +
tm_borders(col = "burlywood4", lwd = 0.25) +
tm_layout(frame = FALSE)
Run Code Online (Sandbox Code Playgroud)