parks | R Documentation |
Dataset was scraped by Masoud Nosrati from MyCountyParks in Mar 2020, geocoding by Andrew Maloney through QGIS.
parks
A data frame with 1645 rows and 15 variables:
name of the park
name of the county
name of the city
name of the state
phone number
5-digit zip code
1645 0s XXX delete column?
1645 OKs XXX delete column?
formatted addresses - some are duplicates - XXX look into
geographic latitude
geographic longitude
column used to classify the data set
https://www.mycountyparks.com/County/Default.aspx
# Map of parks in Iowa county using ggplot2
library(ggplot2)
library(dplyr) # for the pipe
parks %>%
# filter(county == "Story county) %>%
ggplot() +
geom_point(aes(x = longitude, y = latitude))
# leaflet map
library(leaflet)
library(sf)
parks %>%
leaflet() %>%
addTiles() %>%
addPolygons(data = ia_counties,
weight = 1, color="#333333") %>%
addCircleMarkers(lng = ~longitude, lat = ~latitude,
radius = 1, stroke = 0.1,
label = ~name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.