I am making a map through leaflet from a tutorial.I followed it and I used the code below to make the map:
m<- leaflet() %>% setView(-96,37,4) %>% addProviderTiles(providers$Stamen.Toner)%>% addPolygons(data =districts, weight = 1, smoothFactor = 0.5, color = "white", fillOpacity = 0.8, fillcolor= pal(fb$per.content)) m
However, i keep getting this error:
Error in addPolygons(., data = districts, weight = 1, smoothFactor = 0.5, : unused argument (fillcolor = pal(fb$per.content)) > m Error: object 'm' not found
I am not sure why I got an error, I appreciate input here.