ggplot2 is a plotting system for R, based on the grammar of graphics, which tries to take the good parts of base and lattice graphics and none of the bad parts. It takes care of many of the fiddly details that make plotting a hassle (like drawing legends) as well as providing a powerful model of graphics that makes it easy to produce complex multi-layered graphics.
A copy of this site for local use is available here, as a 6 meg zip file. To use it, unzip and open the index.html page.
You are welcome to ask ggplot2 questions on R-help, but if you'd like to participate in a more focussed mailing list, please sign up for the ggplot2 mailing list:
You must be a member to post messages, but anyone can read the archived discussions.
install.packages("ggplot2")
(you'll need to make sure you have the most recent version of R to get the most recent version of ggplot)
ggplot2: Elegant Graphics for Data Analysis is now available on amazon.com. It describes the theoretical underpinnings of ggplot2 and shows you how all the pieces fit together. The book gives you an high-level overview of the package that you just can't get from reading the documentation.
You can read sample chapters and download the book code from the book website.
You might also find the following presentations useful:
From time-to-time I offer face-to-face workshops and training seminars. You can see upcoming events at lookingatdata.com.
Geoms, short for geometric objects, describe the type of plot you will produce. Read more
geom_abline
geom_bar
geom_blank
geom_contour
geom_density
geom_errorbar
geom_freqpoly
geom_histogram
geom_jitter
geom_linerange
geom_point
geom_polygon
geom_rect
geom_rug
geom_smooth
geom_text
geom_vline
geom_area
geom_bin2d
geom_boxplot
geom_crossbar
geom_density2d
geom_errorbarh
geom_hex
geom_hline
geom_line
geom_path
geom_pointrange
geom_quantile
geom_ribbon
geom_segment
geom_step
geom_tileIt's often useful to transform your data before plotting, and that's what statistical transformations do. Read more
stat_abline
stat_bin2d
stat_boxplot
stat_density
stat_function
stat_identity
stat_quantile
stat_spoke
stat_summary
stat_vline
stat_bin
stat_binhex
stat_contour
stat_density2d
stat_hline
stat_qq
stat_smooth
stat_sum
stat_uniqueScales control the mapping between data and aesthetics. Read more
scale_alpha
scale_continuous
scale_datetime
scale_gradient
scale_gradientn
scale_hue
scale_linetype
scale_shape
scale_brewer
scale_date
scale_discrete
scale_gradient2
scale_grey
scale_identity
scale_manual
scale_sizeCoordinate systems adjust the mapping from coordinates to the 2d plane of the computer screen. Read more
coord_cartesian
coord_flip
coord_polar
coord_equal
coord_map
coord_transFacets display subsets of the dataset in different panels. Read more
facet_grid
facet_wrapPosition adjustments can be used to fine tune positioning of objects to achieve effects like dodging, jittering and stacking. Read more
position_dodge
position_identity
position_stack
position_fill
position_jitter