Comparing geographies with ggplot2 visualizations
When exploring Census or ACS data, you'll often want to know how data varies among different geographic units. For example - which US states have higher - or lower - median household incomes? This can be accomplished through visualization using dot plots, which are particularly effective for showing ranks visually. In this exercise, you'll use the popular ggplot2 data visualization package to accomplish this.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Analyzing US Census Data in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Access the 1-year ACS with the survey parameter
ne_income <- ___(geography = "state",
variables = "B19013_001",
___ = "acs1",
state = c("ME", "NH", "VT", "MA",
"RI", "CT", "NY"))