get_ut_tract_demographics: Get a handful of demographic variables on Utah Census Tracts...

Description Usage Arguments References Examples

Description

The data comes from the American Community Survey (ACS). The variables are: total population, percent White not Hispanic, Percent Black or African American not Hispanic, percent Asian not Hispanic, percent Hispanic all races, per-capita income, median rent and median age.

Usage

1
get_ut_tract_demographics(endyear = 2014, span = 5)

Arguments

endyear

The end year for the survey

span

The span of the survey

References

The choroplethr guide to Census data: http://cran.r-project.org/web/packages/choroplethr/vignettes/e-mapping-us-census-data.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
df = get_ut_tract_demographics(endyear=2010, span=5)
colnames(df)

# analyze the percent of people who are white not hispanic
# a boxplot shows the distribution
boxplot(df$percent_white)

# a choropleth map shows the location of the values in utah
# set the 'value' column to be the column we want to render
df$value = df$percent_white
ut_tract_choropleth(df, 
                    title="2010 Census Tracts\nPercent White not Hispanic", 
                    legend="Percent")

# zoom into salt lake county
ut_tract_choropleth(df, 
                    title="2010 Census Tracts\nPercent White not Hispanic", 
                    legend="Percent",
                    county_zoom=49035)

## End(Not run)

juliasilge/choroplethrUTCensusTract documentation built on May 20, 2019, 6:22 a.m.