我想绘制一个多边形geom_sf()在任何投影其他latlong。使用geom_sf()绘制除了latlong以外的任何投影的sf对象
我使用的manual pages for geom_sf()
发现输入数据集的例子:
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
从经纬度到EPSG转化:3857
nc_3857 <- sf::st_transform(nc, "+init=epsg:3857")
最后用ggplot定义的CRS绘制剧情:
ggplot() + geom_sf(data = nc_3857, colour = "red", fill = NA) + coord_sf(crs=st_crs(3857))
我一直在wgs84(即epsg:4326)中使用lat长轴获取地图。我想要以米为单位的轴,所以我需要ggplot来绘制投影多边形。我究竟做错了什么?
在此先感谢 泽