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.
yearYear the data was collected.
stateState where person resides.
cityCity.
ageAge of the person.
sexGender.
raceEthnicity.
marital_statusMarital status.
personal_incomePersonal 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.