Skip to content

Instantly share code, notes, and snippets.

@sriyoda
Created February 2, 2016 02:57
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/2a874d4c822938c85b5e to your computer and use it in GitHub Desktop.
Save sriyoda/2a874d4c822938c85b5e to your computer and use it in GitHub Desktop.
ggplot(data = yrly_boxoffice) +
geom_smooth(aes(x=year, y=total_gross), colour='red', se=F) +
geom_smooth(aes(x=year, y=worldwide), colour='blue', se=F) +
geom_point(aes(x=year, y=total_gross), colour='red') +
geom_point(aes(x=year, y=worldwide), colour='blue') +
ggtitle("Total BoxOffice vs Highest Grossing Film by Year") +
xlab("Year") +
ylab("Revenue (Dollars)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment