[R] ggplot2 - deprecated guide= argument in

hadley wickham h.wickham at gmail.com
Thu Sep 18 14:57:25 CEST 2008


> As for now, I have not yet delved deep enough into the new version to be
> sure if I like it or not. It's just that I like the freedom to choose, and
> the previous form was great. Any chance you may put it back as an optional
> parameter?

I doubt it, but you can override the defaults as follows:

qplot(factor(cyl), mpg, data=mtcars, colour=factor(vs), geom="boxplot")
GeomBoxplot$guide_geom <- function(.) "point"
qplot(factor(cyl), mpg, data=mtcars, colour=factor(vs), geom="boxplot")

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list