Adding color to polylines in leaflet in R
问题 I have had a look at this and other links therein. This is exactly what I am trying to achieve and failing. Here is some sample data: structure(list(lat = c(51.88783, 51.8878441, 51.887825, 51.88659, 51.8866959, 51.8874931, 51.89359, 51.8941269, 51.8977051, 51.8994331, 51.90773, 51.91324, 51.91604, 51.9216652, 51.93353, 51.9419365 ), lon = c(4.28763342, 4.287635, 4.28765154, 4.29007339, 4.29562664, 4.29917, 4.30641174, 4.30561829, 4.29263353, 4.284498, 4.261132, 4.24711847, 4.241075, 4.23262,