Hi:
The Details section of the help page for leaflet::leaflet() provides a
clue: use ~ before the variable names. Applying this to your problem,
df %>% leaflet() %>% addTiles() %>% addPolygons(lat = ~lat, lng = ~lng)
produces a bow-tie shaped object in my web browser. Is that what you expected?
Dennis
> --
> You received this message because you are subscribed to the Google Groups
> "manipulatr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
manipulatr+...@googlegroups.com.
> To post to this group, send email to
manip...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/manipulatr.
> For more options, visit
https://groups.google.com/d/optout.