RDocumentation
Moon
Search all packages and functions
⚠️
There's a newer version (3.3.6) of this package.
Take me there.
Readme not available 😞
Copy Link
Copy
Link to current version
Version
Version
3.3.6
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.1
3.1.0
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.0.1
1.0.0
0.9.3.1
0.9.2.1
0.9.1
0.9.0
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.7
0.6
0.5.7
0.5.6
0.5.5
0.5.4
0.5.2
0.5.1
Down Chevron
Install
install.packages('ggplot2')
Monthly Downloads
3,113,536
Version
0.9.1
License
GPL-2
Maintainer
Hadley Wickham
Last Published
May 8th, 2012
Functions in ggplot2 (0.9.1)
Search functions
aes_linetype_size_shape
Differentiation related aesthetics: linetype, size, shape
annotation_map
Annotation: maps.
facet_wrap
Wrap a 1d ribbon of panels into 2d.
geom_pointrange
An interval represented by a vertical line, with a point in the middle.
geom_histogram
Histogram
coord_flip
Flipped cartesian coordinates.
annotation_logticks
Annotation: log tick marks
geom_boxplot
Box and whiskers plot.
geom_bar
Bars, rectangles with bases on x-axis
coord_expand_defaults
Set the default expand values for the scale, if NA
geom_contour
Display contours of a 3d surface in 2d.
facet_null
Facet specification: a single panel.
geom_raster
High-performance rectangular tiling.
coord_polar
Polar coordinates.
cut_interval
Cut numeric vector into intervals of equal length.
annotation_raster
Annotation: High-performance rectangular tiling.
fortify.sp
Fortify method for classes from the sp package.
geom_hex
Hexagon bining.
ggplotGrob
Generate a ggplot2 plot grob.
aes
Generate aesthetic mappings that describe how variables in the data are mapped to visual properties (aesthetics) of geoms.
stat_sum
Sum unique values. Useful for overplotting on scatterplots.
geom_freqpoly
Frequency polygon.
geom_jitter
Points, jittered to reduce overplotting.
position_fill
Stack overlapping objects on top of one another, and standardise to have equal height.
coord_cartesian
Cartesian coordinates.
map_data
Create a data frame of map data.
geom_segment
Single line segments.
geom_errorbarh
Horizontal error bars
msleep
An updated and expanded version of the mammals sleep dataset.
geom_line
Connect observations, ordered by x value.
annotation_custom
Annotation: Custom grob.
hmisc
Wrap up a selection of summary functions from Hmisc to make it easy to use with
stat_summary
.
stat_bin2d
Count number of observation in rectangular bins.
fortify.map
Fortify method for map objects.
geom_violin
Violin plot.
geom_quantile
Add quantile lines from a quantile regression.
geom_step
Connect observations by stairs.
stat_ydensity
1d kernel density estimate along y axis, for violin plot.
fortify-multcomp
Fortify methods for objects produced by
multcomp
aes_auto
Automatic aesthetic mapping
geom_bin2d
Add heatmap of 2d bin counts.
labs
Change axis labels and legend titles
aes_position
Position related aesthetics: x, y, xmin, xmax, ymin, ymax, xend, yend
ggplot.data.frame
Create a new ggplot plot from a data frame
scale_x_continuous
Continuous position scales (x & y).
cweave
Col weave
guides
Set guides for each scale.
translate_qplot_ggplot
Translating between qplot and ggplot
movies
Movie information and user ratings from IMDB.com.
layer
Create a new layer
fortify
Fortify a model with data.
economics
US economic time series.
scale_area
Scale area instead of radius (for size).
limits
Generate correct scale type for specified limits
ggplot
Create a new ggplot plot
scale_linetype
Scale for line patterns.
position_stack
Stack overlapping objects on top of one another.
should_stop
Used in examples to illustrate when errors should occur.
ggstructure
A plot which aims to reveal gross structural anomalies in the data.
benchplot
Benchmark plot creation time. Broken down into construct, build, render and draw times.
geom_dotplot
Dot plot
aes_group_order
Aesthetics: group, order
is.coord
Is this object a coordinate system?
last_plot
Retrieve the last plot to be modified or created.
midwest
Midwest demographics.
geom_tile
Tile plane with rectangles.
geom_linerange
An interval represented by a vertical line.
scale_colour_gradient
Smooth gradient between two colours
borders
Create a layer of map borders.
geom_path
Connect observations in original order
gtable
Create a new table grid.
theme_bw
A theme with white background and black gridlines.
position_identity
Don't adjust position
geom_ribbon
Ribbons, y range with continuous x values.
geom_area
Area plot.
geom_text
Textual annotations.
scale_x_discrete
Discrete position.
scale_x_date
Position scale, date
geom_blank
Blank, draws nothing.
coord_map
Map projections.
guide_colourbar
Contiuous colour bar guide.
geom_crossbar
Hollow bar with middle indicated by horizontal line.
presidential
Terms of 10 presidents from Eisenhower to Bush W.
geom_hline
Horizontal line.
ggplot_build
Build ggplot for rendering.
label_bquote
Label facet with 'bquoted' expressions
geom_map
Polygons from a reference map.
scale_colour_brewer
Sequential, diverging and qualitative colour scales from colorbrewer.org
ggscale
Components of a scale:
ggplot_gtable
Build a plot with all the usual bits and pieces.
is.facet
Is this object a facetting specification?
scale_colour_gradient2
Diverging colour gradient
aes_colour_fill_alpha
Colour related aesthetics: colour, fill and alpha
ggorder
A plot to investigate the order in which observations were recorded.
rweave
Row weave.
stat_summary
Summarise y values at every unique x.
theme_rect
Theme element: rectangle.
translate_qplot_gpl
Translating between qplot and Graphics Production Library (GPL)
update_geom_defaults
Modify geom/stat aesthetic defaults for future plots
plotmatrix
Code to create a scatterplot matrix (experimental)
guide_legend
Legend guide.
qplot
Quick plot
scale_shape
Scale for shapes, aka glyphs.
position_jitter
Jitter points to avoid overplotting.
interleave
Interleave (or zip) multiple vectors into a single vector.
stat_density
1d kernel density estimate.
discrete_scale
Discrete scale constructor.
scale_colour_identity
Use values without scaling.
ggfluctuation
Create a fluctuation plot.
scale_x_datetime
Position scale, date
translate_qplot_lattice
Translating between qplot and lattice
geom_vline
Line, vertical.
scale_colour_gradientn
Smooth colour gradient between n colours
scale_alpha
Alpha scales.
stat_contour
Calculate contours of 3d data.
stat_unique
Remove duplicates.
theme_blank
Theme element: blank. This theme element draws nothing, and assigns no space
stat_bindot
Bin data for dot plot.
label_parsed
Label facets with parsed label.
stat_abline
Add a line with slope and intercept.
ggpcp
Make a parallel coordinates plot.
annotate
Annotate a plot
stat_identity
Identity statistic.
resolution
Compute the "resolution" of a data vector.
scale_colour_manual
Create your own discrete scale.
translate_qplot_base
Translating between qplot and base graphics
scale_colour_grey
Sequential grey colour scale.
stat_summary_hex
Apply funciton for 2D hexagonal bins.
scale_colour_hue
Qualitative colour scale with evenly spaced hues.
geom_density2d
Contours from a 2d density estimate.
stat_spoke
Convert angle and radius to xend and yend.
ylim
Convenience function to set the limits of the y axis.
ggplot2
ggplot2.
stat_function
Superimpose a function.
theme_grey
A theme with grey background and white gridlines.
geom_rect
2d rectangles.
summary.ggplot
Displays a useful description of a ggplot object
stat_binhex
Bin 2d plane into hexagons.
continuous_scale
Continuous scale constructor.
stat_qq
Calculation for quantile-quantile plot.
update_labels
Update axis/legend labels
label_both
Label facets with value and variable.
my_plot
Create a plot.
expand_limits
Expand the plot limits with data.
coord_fixed
Cartesian coordinates with fixed relationship between x and y scales.
geom_abline
Line specified by slope and intercept.
seals
Vector field of seal movements.
geom_point
Points, as for a scatterplot
position_dodge
Adjust position by dodging overlaps to the side.
xlim
Convenience function to set the limits of the x axis.
stat_bin
Bin data.
theme_segment
Theme element: segments.
geom_errorbar
Error bars.
geom_polygon
Polygon, a filled path.
mean_se
Calculate mean and standard errors on either side.
geom_smooth
Add a smoothed conditional mean.
ggmissing
Create a plot to illustrate patterns of missing values.
update_element
Update theme param
theme_update
Get, set and update themes.
scale_size_continuous
Size scale.
diamonds
Prices of 50,000 round cut diamonds
stat_density2d
2d density estimation.
autoplot
Create a complete ggplot appropriate to a particular data type
coord
New coordinate system.
stat_quantile
Continuous quantiles.
stat_smooth
Add a smoother.
mpg
Fuel economy data from 1999 and 2008 for 38 popular models of car
label_value
Label facets with their value. This is the default labelling scheme.
stat_hline
Add a horizontal line
stat_boxplot
Calculate components of box and whisker plot.
zeroGrob
The zero grob draws nothing and has zero size.
stat_summary2d
Apply funciton for 2D rectangular bins.
facet
Facet specification.
theme_line
Theme element: line.
+.ggplot
Modify a plot by adding on new components.
theme_text
Theme element: text.
coord_trans
Transformed cartesian coordinate system.
opts
Set options/theme elements for a single plot
aes_string
Generate aesthetic mappings from a string
geom_density
Display a smooth density estimate.
ggsave
Save a ggplot with sensible defaults
stat_vline
Add a vertical line
waiver
A waiver object.
absoluteGrob
Absolute grob
aes_all
Given a character vector, create a set of identity mappings
facet_grid
Lay out panels in a grid.
cut_number
Cut numeric vector into intervals containing equal number of points.
fortify.lm
Supplement the data fitted to a linear model with model fit statistics.
geom_rug
Marginal rug plots.
print.ggplot
Draw plot on current graphics device.