Question: Problem 11.3: Use the ZipGeography and ZipDemography data tables (from dcData) to create these graphics. Make a bar chart showing, for each state, the count
Problem 11.3: Use the ZipGeography and ZipDemography data tables (from dcData) to create these graphics. Make a bar chart showing, for each state, the count of the population that is under 5 years old, between 5 and 18 years old, between 18 and 65 years old, and over 65. Make another bar chart showing the proportion of the state population that is in each of the age categories. Call a ZIP code crowded when the population is over 50,000. Make a scatter plot showing the geographic location of the crowded ZIPs. Make a choropleth map of the US showing, for each state, one of the following (your choice). Hint: youll have to sum over all the ZIP codes in a state before you can meaningfully find the fraction. the fraction of housing units (Totalhousingunits) that are vacant (Vacanthousingunits). the fraction of the population that is over 65 years old. the fraction of the population with a bachelors degree (Bachelorsdegreeorhigher). Pick out the 10,000 zip codes with the highest population. Make a scatter plot of the latitude versus longitude. (Hints: arrange() and head().) Use color to represent the fraction of the population that is over 65. How many zip codes have a WaterArea that is more than 50% of the LandArea? Make a scatter plot showing the geographical location of these, with color indicating the population.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
