# NOT RUN {
# Map - Points
library(ggplot2)
pentagon <- geo_lite_sf("Pentagon")
ggplot(pentagon) +
geom_sf()
pentagon_poly <- geo_lite_sf("Pentagon", points_only = FALSE)
ggplot(pentagon_poly) +
geom_sf()
# Several results
Madrid <- geo_lite_sf("Madrid",
limit = 2,
points_only = FALSE, full_results = TRUE
)
ggplot(Madrid) +
geom_sf(fill = NA)
Starbucks <- geo_lite_sf("Starbucks, New York",
limit = 20, full_results = TRUE
)
ggplot(Starbucks) +
geom_sf()
# }
Run the code above in your browser using DataLab