Here is my code:
m <- leaflet() %>%
addProviderTiles(providers$Stamen.Toner) %>%
setView(lng = -107.9917071, lat = 59.5, zoom = 3.5) %>%
addPolygons(data = plant,
color = "#660000",
weight = 1,
smoothFactor = 0.5) %>%
addCircleMarkers(lng = plant$lon, lat = plant$lat)
m
No matter what I try I get the following error message:
Error in polygonData.default(data) : Don't know how to get path data from object of class spec_tbl_df
My data frame from which my data comes is a simple 5 row by 3 columns of coordinates and the name of the place.
Thoughts?