Geoms, short for geometric objects, describe the type of plot you will produce.
geom_abline
(geom_hline, geom_vline)geom_bar
(stat_count)geom_bin2d
(stat_bin2d, stat_bin_2d)geom_blank
geom_boxplot
(stat_boxplot)geom_contour
(stat_contour)geom_count
(stat_sum)geom_curve
(geom_segment)geom_crossbar
(geom_errorbar, geom_linerange, geom_pointrange)geom_density
(stat_density)geom_density2d
(stat_density2d)geom_dotplot
geom_errorbarh
geom_freqpoly
(geom_histogram, stat_bin)geom_hex
(stat_bin_hex, stat_binhex)geom_jitter
geom_label
(geom_text)geom_line
(geom_path, geom_step)geom_map
geom_point
geom_polygon
geom_quantile
(stat_quantile)geom_raster
(geom_rect, geom_tile)geom_ribbon
(geom_area)geom_rug
geom_smooth
(stat_smooth)geom_violin
(stat_ydensity)It's often useful to transform your data before plotting, and that's what statistical transformations do.
stat_ecdf
stat_ellipse
stat_function
stat_identity
stat_qq
(geom_qq)stat_summary_2d
(stat_summary2d, stat_summary_hex)stat_unique
Scales control the mapping between data and aesthetics.
expand_limits
guides
guide_legend
guide_colourbar
(guide_colorbar)lims
(xlim, ylim)scale_alpha
(scale_alpha_continuous, scale_alpha_discrete)scale_colour_brewer
(scale_color_brewer, scale_color_distiller, scale_colour_distiller, scale_fill_brewer, scale_fill_distiller)scale_colour_gradient
(scale_color_continuous, scale_color_gradient, scale_color_gradient2, scale_color_gradientn, scale_colour_continuous, scale_colour_gradient2, scale_colour_gradientn, scale_fill_continuous, scale_fill_gradient, scale_fill_gradient2, scale_fill_gradientn)scale_colour_grey
(scale_color_grey, scale_fill_grey)scale_colour_hue
(scale_color_discrete, scale_color_hue, scale_colour_discrete, scale_fill_discrete, scale_fill_hue)scale_identity
(scale_alpha_identity, scale_color_identity, scale_colour_identity, scale_fill_identity, scale_linetype_identity, scale_shape_identity, scale_size_identity)scale_manual
(scale_alpha_manual, scale_color_manual, scale_colour_manual, scale_fill_manual, scale_linetype_manual, scale_shape_manual, scale_size_manual)scale_linetype
(scale_linetype_continuous, scale_linetype_discrete)scale_shape
(scale_shape_continuous, scale_shape_discrete)scale_size
(scale_radius, scale_size_area, scale_size_continuous, scale_size_discrete)scale_x_discrete
(scale_y_discrete)labs
(ggtitle, xlab, ylab)update_labels
Coordinate systems adjust the mapping from coordinates to the 2d plane of the computer screen.
coord_cartesian
coord_fixed
(coord_equal)coord_flip
coord_map
(coord_quickmap)coord_polar
coord_trans
Facets display subsets of the dataset in different panels.
facet_grid
facet_null
facet_wrap
labeller
Position adjustments can be used to fine tune positioning of objects to achieve effects like dodging, jittering and stacking.
position_dodge
position_fill
(position_stack)position_identity
position_nudge
position_jitter
position_jitterdodge
Data sets included in ggplot2 and used in examples
diamonds
economics
(economics_long)faithfuld
luv_colours
midwest
mpg
msleep
presidential
seals
Specialised functions for adding annotations to a plot
annotate
annotation_custom
annotation_logticks
annotation_map
annotation_raster
borders
Fortify methods make it possible to use ggplot2 with objects of various types, not just data frames.
fortify
fortify-multcomp
(fortify.cld, fortify.confint.glht, fortify.glht, fortify.summary.glht)fortify.lm
fortify.map
fortify.sp
(fortify.Line, fortify.Lines, fortify.Polygon, fortify.Polygons, fortify.SpatialLinesDataFrame, fortify.SpatialPolygons, fortify.SpatialPolygonsDataFrame)map_data
Themes control non-data components of the plot
add_theme
calc_element
element_blank
element_line
element_rect
element_text
ggtheme
(theme_bw, theme_classic, theme_dark, theme_gray, theme_grey, theme_light, theme_linedraw, theme_minimal, theme_void)is.rel
is.theme
margin
rel
theme
theme_update
(theme_get, theme_set)ggplot
(ggplot.data.frame, ggplot.default)qplot
(quickplot)+.gg
(%+%, %+replace%)autoplot
is.ggplot
print.ggplot
(plot.ggplot)aes
aes_
(aes_q, aes_string)aes_all
aes_auto
aes_colour_fill_alpha
(color, colour, fill)aes_group_order
(group)aes_linetype_size_shape
(linetype, shape, size)aes_position
(x, xend, xmax, xmin, y, yend, ymax, ymin)ggproto
(ggproto_parent)print.ggproto
is.ggproto
format.ggproto
alpha
as.list.ggproto
cut_interval
(cut_number, cut_width)geom_spoke
(stat_spoke)ggsave
graphical-units
(.pt, .stroke)hmisc
(mean_cl_boot, mean_cl_normal, mean_sdl, median_hilow)labellers
(label_both, label_bquote, label_context, label_parsed, label_value, label_wrap_gen)last_plot
layer
mean_se
resolution
scale_continuous
(scale_x_continuous, scale_x_log10, scale_x_reverse, scale_x_sqrt, scale_y_continuous, scale_y_log10, scale_y_reverse, scale_y_sqrt)scale_date
(scale_x_date, scale_x_datetime, scale_y_date, scale_y_datetime)stat_summary_bin
(stat_summary)translate_qplot_base
translate_qplot_ggplot
translate_qplot_lattice
txhousing
update_geom_defaults
(update_stat_defaults)