census | R Documentation |
A random sample of 500 observations from the 2000 U.S. Census Data.
census
A data frame with 500 observations on the following 8 variables.
Census Year.
Name of state.
Total family income (in U.S. dollars).
Age.
Sex with levels Female
and Male
.
Race with levels American Indian or Alaska Native
, Black
, Chinese
, Japanese
, Other Asian or Pacific Islander
, Two major races
, White
and Other
.
Marital status with levels Divorced
, Married/spouse absent
, Married/spouse present
, Never married/single
, Separated
and Widowed
.
Total personal income (in U.S. dollars).
https://data.census.gov/cedsci
library(dplyr)
library(ggplot2)
census |>
filter(total_family_income > 0) |>
ggplot(aes(x = total_family_income)) +
geom_histogram(binwidth = 25000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.