Summer 2010 — R: ggplot2 Intro. Contents Intro When it comes to producing graphics in R, there are basically three options for your average user. base graphics I've written up a pretty comprehensive description for use of base graphics here, and don't intend to extend beyond that. Base graphics are attractive, and flexible, but when it comes to creating more complex plots, like this one, the code to create it become more cumbersome. Both and make creating plots of multivariate data easier. However, I find it easier to create customized and novel plots with than , and its syntax is more sensible to me. The website for ggplot2 is here: Basics is meant to be an implementation of the Grammar of Graphics, hence gg-plot. Plots convey information through various aspects of their aesthetics.
X position y position size of elements shape of elements color of elements The elements in a plot are geometric shapes, like points lines line segments bars text Layer by Layer Displaying Statistics. Book. Graphs - R Cookbook. My book about data visualization in R is available! The book covers many of the same topics as the Graphs and Data Manipulation sections of this website, but it goes into more depth and covers a broader range of techniques. You can preview it at Google Books. Purchase it from Amazon, or direct from O'Reilly. There are many ways of making graphs in R, each with its advantages and disadvantages. Graphs with ggplot2 Miscellaneous Output to a file - PDF, PNG, TIFF, SVG Shapes and line types - Set the shape of points and patterns used in lines. Basic graphs with standard graphics Other interesting graphs Correlation matrix ggplot2 online documentation. Ggplot. had.co.nz.
Engineering Data Analysis (with R and ggplot2) Ggplot2: Elegant graphics for data analysis - GitHub. Learning R. RStudio. The R Project for Statistical Computing.