| statprograms | R Documentation |
This dataset contains various information from the majority of graduate statistics programs in the United States.
statprograms
A data.frame with 490 observations and 16 columns. The columns are defined as follows:
schoolThe college
programThe program type as advertised by the department
program_categoryThe program type categorized as either "Statistics" or "Biostatistics"
degreeThe degree given by the department
degree_categoryThe degree categorized as either "Master" or "Doctorate"
stateThe state
cityThe city
square_milesThe square miles of the city (or region) from https://www.wikipedia.org/
populationThe population of the city (or region) from https://www.wikipedia.org/ or https://www.census.gov/programs-surveys/popest/data/data-sets.html. Most are estimates from 2010 to 2014.
densityThe population density
average_winterThe average winter temperature
average_summerThe average summer temperature
latitudeThe latitude of the department's building (or as close as possible) from https://www.gps-coordinates.net/
longitudeThe longitude of the department's building (or as close as possible) from https://www.gps-coordinates.net/
linkThe URL of the department's website
date_collectedThe date the information was recorded
Brett Klamer
## Not run:
data(statprograms)
summary(statprograms)
#----------------------------------------------------------------------------
# Plot locations on a map
#----------------------------------------------------------------------------
library(maps)
library(ggplot2)
library(mapproj)
us_states <- map_data("state")
ggplot(
data = statprograms[statprograms$state != "Alaska", ],
mapping = aes(x = longitude, y = latitude)
) +
geom_polygon(
data = us_states,
aes(x = long, y = lat, group = group),
fill = "white",
color = "gray50"
) +
geom_point() +
guides(fill = "none") +
coord_map(
projection = "albers",
lat0 = 39,
lat1 = 45
) +
theme_bw()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.