# NOT RUN {
# get some demographic data on US counties from the 2010 5-year ACS
df = get_county_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
# set the 'value' column to be the column we want to render
df$value = df$percent_white
county_choropleth(df)
# }
Run the code above in your browser using DataLab