Skip to contents

Datasets

Included datasets.

acs_poverty
US County Poverty Rates by Age Group
acs_poverty_lon
US County Poverty Rates by Age Group, Longer Version
county_comp
US County Components of Population Change
asasec
American Sociological Association Section Membership
bad_date
Dates in character form
color_table
A table of hex color values related to types of color blindness
counties_sf
US County geometries and demographic data
county_data
Census Data on US Counties
county_map
US County map file
edu
Years of school completed by people 25 years and over in the US.
election
US Presidential Election 2016, State-level results
election24
US Presidential Election 2024, State-level results
election24_county_df
US County-level Presidential Election data, 2024
elections_historic
US Presidential Election vote shares
farsinvolved
Child Pedestrians involved in Fatal Motor Vehicle Crashes, 2009-2023
fredts
Monetary Base and S&P 500 series
gss_sm
General Social Survey data, 2016
gss_lon
General Social Survey data, 1972-2024
lawschools
US Law School Enrollments 1963-2015
maunaloa
Mauna Loa Atmospheric CO2 Concentration
oecd_le
Life Expectancy in the OECD, 1960-2023.
oecd_sum
Life Expectancy in the OECD, 1960-2023
okboomer
Monthly Births in the U.S., 1933-2015
opiates
Opiate-Related Deaths in the United States, 1999-2020
organdata
Organ donation in the OECD
preg
An untidy table of data
preg2
A wider table of untidy data
states_sf
US State geometries
studebt
Student debt data
titanic
A table of survival rates from the Titanic
yahoo
Yahoo Revenue and Employees

Functions

Utility functions.

`%nin%`
%nin%
center_df()
center_df
color_comp()
Plot a table of color hex values as a table of colors
color_pal()
Draw a palette of colors
freq_tab()
Generate a tidy n-way frequency table
int_to_year()
int_to_year
lay_out()
Arrange ggplot2 plots in an arbitrary grid
round_df()
round_df
prefix_replace()
prefix_replace
prefix_strip()
prefix_strip
setup_course_notes()
setup_course_notes
tw_tab()
Quickly make a two-way table of proportions (percentages)

Themes

ggplot2 themes.

theme_socviz()
A ggplot2 theme for socviz
theme_socviz_map()
A map theme for socviz