Skip to content

Instantly share code, notes, and snippets.

@dartar
Created November 18, 2014 18:35
Show Gist options
  • Save dartar/ebd8e015437d81224494 to your computer and use it in GitHub Desktop.
Save dartar/ebd8e015437d81224494 to your computer and use it in GitHub Desktop.
PV plots
ggplot(data=tgm, aes(x=month, y=value, colour=series, group=series)) + xlab("Month") + ylab("Pageviews (billion)") + ggtitle(tgtitle) + geom_line() + stat_smooth(method="lm", linetype='dotted', alpha=0, aes(outfit=fit<<-..y..)) + theme_bw() + theme(plot.title = element_text(size = rel(2.2)), axis.title = element_text(size = rel(1.6)), axis.text = element_text(size = rel(1.2)),legend.title = element_text(size = rel(1.5)), legend.text = element_text(size = rel(1.3))) + scale_x_discrete(breaks=c('2013-05', '2013-07', '2013-09', '2013-11', '2014-01', '2014-03', '2014-05', '2014-07', '2014-09','2014-11'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment