Description Usage Format Examples
Data on a sample of 500 people from the Cleveland, OH and Sacramento, CA metro areas.
1 | data("cle.sac")
|
A data frame with 500 observations representing people on the following 8 variables.
year
Year the data was collected.
state
State where person resides.
city
City.
age
Age of the person.
sex
Gender.
race
Ethnicity.
marital_status
Marital status.
personal_income
Personal income.
1 2 3 4 5 6 7 8 9 10 | data(cle.sac)
d <- cle.sac[!is.na(cle_sac$personal_income),]
set.seed(8957)
is.sac <- d$city == "Sacramento_ CA"
is.cle <- d$city == "Cleveland_ OH"
sac <- sample(d$personal_income[is.sac], 17)
cle <- sample(d$personal_income[is.cle], 21)
par(mfrow = c(2, 1), las = 1)
histPlot(sac, breaks = 8)
histPlot(cle, breaks = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.