使用Leaflet在R

时间:2019-05-03 01:07:11

标签: r leaflet gis

我正在尝试在R中使用传单包进行绘图,但是折线存在问题。

以下是shapefile的信息:

 class       : SpatialLinesDataFrame 
 features    : 861 
 extent      : 847253.8, 853675, 4154071, 4159107  (xmin, xmax, ymin, ymax)
 coord. ref. : +proj=utm +zone=51 +datum=WGS84 +no_defs +ellps=WGS84 
 +towgs84=0,0,0 
 variables   : 2
 names       : OBJECTID, Shape_Leng 

它在sf,mapview和base R等其他程序包中也能很好地绘制,但是我很难让它在传单中正常工作。是否需要采取一些步骤?

m <- leaflet() %>%
addTiles() %>%  
addPolylines(data=rt025)
m

0 个答案:

没有答案