Skip to content

Instantly share code, notes, and snippets.

@sriyoda
Created February 1, 2016 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sriyoda/f4e777a83142732efeef to your computer and use it in GitHub Desktop.
Save sriyoda/f4e777a83142732efeef to your computer and use it in GitHub Desktop.
ggplot(data=topmovies) +
geom_smooth(aes(x=opening, y=domestic), color = "purple") +
geom_point(aes(x=opening, y=domestic), color = "light green") +
ylim(0, 5e+8) + xlim(0, 2e+08) +
ggtitle("Domestic Gross vs Opening Weekend") +
xlab("Opening Weekend Revenue (dollars)") +
ylab("Total Domestic Revenue (dollars)") +
theme_few()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment