0

It seems polyline will connect all the start end points in sequence together like an unfilled polygon. Is there a way to add each line separately on an interactive map in R?

This earlier thread proposed a different package, but could I do this with the leaflet package?

Community
  • 1
  • 1
santoku
  • 3,297
  • 7
  • 48
  • 76
  • The package mentioned in the post you link to will produce a **leaflet** map. – TimSalabim Jun 18 '16 at 11:40
  • that looks more like a map view map though – santoku Jun 24 '16 at 12:26
  • 1
    The `@map` slot of a **mapview** object is of class `leaflet` so it is a **leaflet** map in that respect. The look is just a result of the **leaflet** setup in **mapview** (the defaults). Regarding your question I suggest you first familiarise yourself with the spatial classes from **sp**. Plotting is easy once you have a valid set of lines. See my answer here http://stackoverflow.com/questions/38026173/how-different-colors-to-different-sections-of-a-route-on-leaflet-map-r-studio which seems related to your endeavor. – TimSalabim Jun 25 '16 at 12:50

0 Answers0