Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. income.boxplot <- ggplot(income.by.state, aes(x = State, y = Estimate)) +
  2. geom_boxplot() +
  3. coord_flip() + scale_x_discrete(limits = rev(levels(income$State))) +
  4. labs(title = "Median household income by state",
  5. subtitle = "Source: 2011-2015 American Community Survey") +
  6. theme(plot.title = element_text(hjust = 0.5)) +
  7. labs(x = "State",
  8. y = "Median household income",
  9. fill = "Median household income") +
  10. theme_fivethirtyeight() +
  11. theme(axis.line.x = element_line(size = .5, colour = "black"),
  12. axis.title = element_text(size = 14),
  13. legend.position = "right",
  14. legend.direction = "vertical",
  15. legend.box = "vertical",
  16. legend.key.size = unit(0.7, "cm"),
  17. legend.text = element_text(size = 10),
  18. text = element_text(family = "OfficinaSanITC-Book"),
  19. plot.title = element_text(family = "OfficinaSanITC-Book"))
  20. income.boxplot
  21.  
  22. 1 Ziebach County Median Household Income ($) South Dakota 35119
  23. 2 Zavala County Median Household Income ($) Texas 26672
  24. 3 Zapata County Median Household Income ($) Texas 32162
  25. 4 Yuma County Median Household Income ($) Colorado 43105
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement