by bglazer · 11y ago · 0 comments
Like a lot of good tools, it seems that ggplot2 makes the common case extremely easy, but it can be a struggle to make it work in uncommon situations.
> s2 <- data.frame(x=c(1,2,3,4), y=c(6,7,6,7), series=rep("s2", 4))
> s <- rbind(s1, s2)
> qplot(x, y, data=s, geom=c('point', 'line'), color=series)