Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #Let's look at the distribution of home values
  2. home_value_hist <- ggplot(sf, aes(SalePrice)) +
  3. geom_histogram(fill=pallete_1_colors) +
  4. xlab("Sale Price($)") + ylab("Count") +
  5. scale_fill_manual(values=pallete_1_colors) +
  6. plotTheme() +
  7. labs(x="Sale Price($)", y="Count", title="Distribution of San Francisco home prices",
  8. subtitle="Nominal prices (2009 - 2015)",
  9. caption="Source: San Francisco Office of the Assessor-Recorder\n@KenSteif & @SimonKassel") +
  10. scale_x_continuous(labels = comma) + scale_y_continuous(labels = comma)
  11. home_value_hist
  12. ggsave("plot1_histogram.png", home_value_hist, width = 8, height = 4, device = "png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement