Description Usage Format Source References Examples
Information about each state collected from both the official US Census website and from various other sources.
1 |
A data frame with 51 observations on the following 23 variables.
state
State name.
abbr
State abbreviation (e.g. "MN"
).
fips
FIPS code.
pop2010
Population in 2010.
pop2000
Population in 2000.
homeownership
Homeownership rate.
multiunit
Percent of living units that are in multi-unit structures.
income
Average income per capita.
med_income
Median household income.
poverty
Poverty rate.
fed_spend
Federal spending per capita.
land_area
Land area.
smoke
Percent of population that smokes.
murder
Murders per 100,000 people.
robbery
Robberies per 100,000.
agg_assault
Aggravated assaults per 100,000.
larceny
Larcenies per 100,000.
motor_theft
Vehicle theft per 100,000.
soc_sec
Percent of individuals collecting social security.
nuclear
Percent of power coming from nuclear sources.
coal
Percent of power coming from coal sources.
tr_deaths
Traffic deaths per 100,000.
tr_deaths_no_alc
Traffic deaths per 100,000 where alcohol was not a factor.
unempl
Unemployment rate (February 2012, preliminary).
Please note that we have not validated the Infochimps data. The other data were collected directly from the corresponding websites.
US Census website (pop2010
, pop2000
, homeownership
, multiunits
, income
, med_income
, poverty
, fed_spend
, land_area
), http://quickfacts.census.gov/qfd/index.html
Infochimps (murder
, robbery
, agg_assault
, larcent
, motor_theft
, soc_sec
, coal
, nuclear
), http://www.infochimps.com (see linked pages and corresponding downloadable data sets for original source information)
National Highway Traffic Safety Administration (tr_deaths
, tr_deaths_no_alc
), http://www-fars.nhtsa.dot.gov/
Bureau of Labor Statistics (unempl
), http://www.bls.gov/web/laus/laumstrk.htm
OpenIntro, openintro.org
1 2 3 4 5 6 7 8 9 10 11 | data(state)
mapvar(state$unempl, state$abbr, 3:1, Legend="Unemployment (%)")
mapvar(state$soc_sec, state$abbr, 1:3, Legend="Social Security (%)")
DC <- state$state == "District of Columbia"
murder <- state$murder
murder[DC] <- NA
mapvar(murder, state$abbr, c(3,2,2), Legend="Murders per 100k")
mapvar(state$nuclear, state$abbr, c(2,3,2), Legend="Nuclear Energy (%)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.