1

I have a shiny app that is a basically a leaflet with polylines that go from one lat/long to another.

I want to have some polylines be blue and some be green.

However, I am not getting this to work. This is the data I am giving the function:

enter image description here

This is the function:

m = addPolylines(m, lng = data_subset()$long,
  lat = data_subset()$lat,
  color = data_subset()$color,
  group = data_subset()$group
)

The output map has all the lines green however. What am I doing wrong?

Krzysztof Janiszewski
  • 3,763
  • 3
  • 18
  • 38

0 Answers0