sud | R Documentation |
Dataset was scraped by Masoud Nosrati from the Iowa Department of Public Health Development in Mar 2020, geocoding by Andrew Maloney through QGIS.
sud
A data frame with 123 rows and 15 variables:
name of the facility
phone number
street address
city
name of state
5-digit zip code
0s XXX delete column?
OKs XXX delete column?
formatted addresses - some are duplicates - XXX look into
geographic latitude
geographic longitude
state abbreviation
column used to classify the dataset
# Map of centers in Iowa using ggplot2
library(ggplot2)
library(dplyr) # for the pipe
sud %>%
ggplot() +
geom_point(aes(x = longitude, y = latitude))
# leaflet map
library(leaflet)
library(sf)
sud %>%
group_by(name,address, phone) %>%
mutate(
hovertext = htmltools::HTML(paste0(name, "<br>",address, '<br>', phone))
) %>%
leaflet() %>%
addTiles() %>%
addPolygons(data = ia_counties,
weight = 1, color="#333333") %>%
addCircleMarkers(lng = ~longitude, lat = ~latitude,
radius = 1, stroke = 0.1,
label = ~hovertext)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.