hadley wickham
2006-Jul-03 07:25 UTC
[R] [R-pkgs] ggplot: a new system for drawing graphics in R
ggplot provides a new system for drawing graphics in R, based on the Grammar of Graphics. It combines the advantages of both base and lattice graphics: conditioning and shared axes are handled automatically, and you can still build up a plot step by step from multiple data sources. It also implements a more sophisticated multidimensional conditioning system and a consistent interface to map data to visual attributes. ggplot (along with reshape) received the John Chambers Award for Statistical Computing. ggplot is available now from CRAN (install.packages("ggplot")) and more information is available at my website (http://had.co.nz/ggplot) including copies of talks, examples, and a guide showing how to convert your existing lattice code. To get started I recommend you look at: * the introductory vignette: vignette("introduction", "ggplot") * help for the quick plotting command: ?qplot * help for the full plotting commands: ?ggplot I want to provide great documentation, so if there is anything you think I am missing, please let me know. Regards, Hadley _______________________________________________ R-packages mailing list R-packages at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-packages
Timm Danker
2006-Jul-06 19:09 UTC
[R] [R-pkgs] ggplot: a new system for drawing graphics in R
I think the ggplot package is extremely promising. Parts of the dokumentation are very good alread, e.g I recently managed to write my first own grob function. One thing I am missing in the dokumentation is a little more detail on how to modify the colours of a plot. Specifically, if I have: xx<-"x y g bar 1 1 1 1 1 5 2 3 2 3 1 3 2 4 2 2" df=read.table(textConnection(xx),header=T);df ggplot(df, aes=list(y=y, x=factor(x),bar=bar))->p ggbar(p, aes=list(fill=g,barcolour=g+1), avoid="dodge", sort=TRUE) ... I get a beatiful barplot, but would like to change the colors of the bars. I tried ?scfill and did not understand too much of the help file. I think some more examples would do it. Timm hadley wickham schrieb:> ggplot provides a new system for drawing graphics in R, based on the > Grammar of Graphics. It combines the advantages of both base and > lattice graphics: conditioning and shared axes are handled > automatically, and you can still build up a plot step by step from > multiple data sources. It also implements a more sophisticated > multidimensional conditioning system and a consistent interface to map > data to visual attributes. ggplot (along with reshape) received the > John Chambers Award for Statistical Computing. > > ggplot is available now from CRAN (install.packages("ggplot")) and > more information is available at my website (http://had.co.nz/ggplot) > including copies of talks, examples, and a guide showing how to > convert your existing lattice code. > > To get started I recommend you look at: > > * the introductory vignette: vignette("introduction", "ggplot") > * help for the quick plotting command: ?qplot > * help for the full plotting commands: ?ggplot > > I want to provide great documentation, so if there is anything you > think I am missing, please let me know. > > Regards, > > Hadley > > _______________________________________________ > R-packages mailing list > R-packages at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-packages > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >