colleges | R Documentation |
Dataset was scraped by Masoud Nosrati from wikipedia in Mar 2020, geocoding by Heike Hofmann through Google API.
colleges
A data frame with 57 rows and 11 variables:
name of school
name of the clinic
type of institution by degree
number of students enrolled (in Spring 2012)
address used in search string for Google geocoding
geographic latitude
geographic longitude
column used for classifying the data set
https://en.wikipedia.org/wiki/List_of_colleges_and_universities_in_Iowa
# Map of rural health clinics in Iowa using ggplot2
library(ggplot2)
library(dplyr) # for the pipe
colleges %>%
ggplot() +
geom_point(aes(x = longitude, y = latitude))
# leaflet map
library(leaflet)
library(sf)
colleges %>%
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.