Jan
19th
Thu
19th
tip: rstats
use geom_line(aes(group=1)) to connect x-axis factors via a line with ggplot2 (h/t @hadleywickham)
use geom_line(aes(group=1)) to connect x-axis factors via a line with ggplot2 (h/t @hadleywickham)
a handy syntax reference for specifying statistical models in R: http://bit.ly/yza8SK
hide part of a legend in ggplot2 with legend=F in the scale, e.g. scale_size(legend=F)
(ab)use ggplot2 to connect x-axis factors via a line with geom_line(aes(x=as.integer(x), y=…))
use expand.grid to create a dataframe w/ all combinations of given vectors and factors http://bit.ly/dOeFUV
use opts(legend.position=c(0.85,0.85)) to move ggplot legends to upper right corner (h/t @drewconway)
to remove legend titles in ggplot, use opts(legend.title=theme_blank())
use opts(axis.text.x=theme_text(angle=45, hjust=1)) to rotate x axis labels in ggplot