ggplot2 v1.0.1

0

Monthly downloads

0th

Percentile

by Hadley Wickham

An Implementation of the Grammar of Graphics

An implementation of the grammar of graphics in R. 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 sophisticated multidimensional conditioning system and a consistent interface to map data to aesthetic attributes. See http://ggplot2.org for more information, documentation and examples.

Functions in ggplot2

Name Description
element_blank Theme element: blank. This theme element draws nothing, and assigns no space
coord_map Map projections.
cut_interval Cut numeric vector into intervals of equal length.
expand_limits Expand the plot limits with data.
geom_hex Hexagon bining.
plot-templates Plot templates.
scale_manual Create your own discrete scale.
scale_size_area Scale area instead of radius, for size.
stat_density2d 2d density estimation.
aes_colour_fill_alpha Colour related aesthetics: colour, fill and alpha
element_line Theme element: line.
gg_dep Give a deprecation error, warning, or messsage, depending on version number.
label_bquote Label facet with 'bquoted' expressions
update_element Update theme param
annotation_map Annotation: maps.
coord New coordinate system.
facet_grid Lay out panels in a grid.
stat_contour Calculate contours of 3d data.
coord_flip Flipped cartesian coordinates.
cweave Col weave
geom_rect 2d rectangles.
geom_pointrange An interval represented by a vertical line, with a point in the middle.
hmisc Wrap up a selection of summary functions from Hmisc to make it easy to use with stat_summary.
ggplot2 ggplot2.
autoplot Create a complete ggplot appropriate to a particular data type
geom_text Textual annotations.
stat_quantile Continuous quantiles.
fortify Fortify a model with data.
borders Create a layer of map borders.
geom_errorbarh Horizontal error bars
geom_crossbar Hollow bar with middle indicated by horizontal line.
rel Relative sizing for theme elements
geom_polygon Polygon, a filled path.
map_data Create a data frame of map data.
geom_jitter Points, jittered to reduce overplotting.
facet_wrap Wrap a 1d ribbon of panels into 2d.
geom_tile Tile plane with rectangles.
geom_abline Line specified by slope and intercept.
aes_auto Automatic aesthetic mapping
scale_x_discrete Discrete position.
ggtheme ggplot2 themes
stat_unique Remove duplicates.
stat_spoke Convert angle and radius to xend and yend.
is.rel Reports whether x is a rel object
waiver A waiver object.
midwest Midwest demographics.
stat_bindot Bin data for dot plot.
label_wrap_gen Label facets with a word wrapped label.
geom_dotplot Dot plot
geom_step Connect observations by stairs.
geom_rug Marginal rug plots.
mean_se Calculate mean and standard errors on either side.
economics US economic time series.
stat_summary_hex Apply funciton for 2D hexagonal bins.
ggsave Save a ggplot with sensible defaults
fortify.lm Supplement the data fitted to a linear model with model fit statistics.
scale_colour_gradient2 Diverging colour gradient
ggscale Components of a scale:
annotate Create an annotation layer.
aes_group_order Aesthetics: group, order
label_both Label facets with value and variable.
opts Build a theme (or partial theme) from theme elements
coord_cartesian Cartesian coordinates.
scale_linetype Scale for line patterns.
aes Generate aesthetic mappings that describe how variables in the data are mapped to visual properties (aesthetics) of geoms.
absoluteGrob Absolute grob
fortify.map Fortify method for map objects.
geom_line Connect observations, ordered by x value.
layer Create a new layer
geom_path Connect observations in original order
cut_number Cut numeric vector into intervals containing equal number of points.
coord_trans Transformed cartesian coordinate system.
qplot Quick plot
is.coord Is this object a coordinate system?
mpg Fuel economy data from 1999 and 2008 for 38 popular models of car
coord_expand_defaults Set the default expand values for the scale, if NA
update_geom_defaults Modify geom/stat aesthetic defaults for future plots
aes_position Position related aesthetics: x, y, xmin, xmax, ymin, ymax, xend, yend
geom_blank Blank, draws nothing.
scale_colour_gradientn Smooth colour gradient between n colours
movies Movie information and user ratings from IMDB.com.
stat_bin2d Count number of observation in rectangular bins.
label_parsed Label facets with parsed label.
geom_area Area plot.
element_rect Theme element: rectangle.
calc_element Calculate the element properties, by inheriting properties from its parents
scale_x_continuous Continuous position scales (x & y).
annotation_custom Annotation: Custom grob.
label_value Label facets with their value. This is the default labelling scheme.
translate_qplot_base Translating between qplot and base graphics
zeroGrob The zero grob draws nothing and has zero size.
seals Vector field of seal movements.
fortify-multcomp Fortify methods for objects produced by multcomp
ggplotGrob Generate a ggplot2 plot grob.
benchplot Benchmark plot creation time. Broken down into construct, build, render and draw times.
diamonds Prices of 50,000 round cut diamonds
scale_shape Scale for shapes, aka glyphs.
stat_qq Calculation for quantile-quantile plot.
element_text Theme element: text.
guide_legend Legend guide.
geom_contour Display contours of a 3d surface in 2d.
stat_vline Add a vertical line
position_stack Stack overlapping objects on top of one another.
geom_freqpoly Frequency polygon.
geom_linerange An interval represented by a vertical line.
stat_abline Add a line with slope and intercept.
geom_smooth Add a smoothed conditional mean.
stat_boxplot Calculate components of box and whisker plot.
aes_linetype_size_shape Differentiation related aesthetics: linetype, size, shape
update_labels Update axis/legend labels
theme Set theme elements
geom_violin Violin plot.
scale_identity Use values without scaling.
coord_polar Polar coordinates.
geom_bin2d Add heatmap of 2d bin counts.
scale_alpha Alpha scales.
coord_fixed Cartesian coordinates with fixed relationship between x and y scales.
is.theme Reports whether x is a theme object
labeller Generic labeller function for facets
geom_quantile Add quantile lines from a quantile regression.
last_plot Retrieve the last plot to be modified or created.
scale_x_datetime Position scale, date
stat_smooth Add a smoother.
stat_summary Summarise y values at every unique x.
geom_segment Single line segments.
scale_colour_gradient Smooth gradient between two colours
resolution Compute the "resolution" of a data vector.
scale_colour_grey Sequential grey colour scale.
ggplot.data.frame Create a new ggplot plot from a data frame
geom_raster High-performance rectangular tiling.
facet_null Facet specification: a single panel.
stat_hline Add a horizontal line
scale_x_date Position scale, date
position_fill Stack overlapping objects on top of one another, and standardise to have equal height.
position_dodge Adjust position by dodging overlaps to the side.
guides Set guides for each scale.
is.ggplot Reports whether x is a ggplot object
geom_bar Bars, rectangles with bases on x-axis
labs Change axis labels and legend titles
geom_density2d Contours from a 2d density estimate.
geom_errorbar Error bars.
guide_colourbar Continuous colour bar guide.
print.ggplot Draw plot on current graphics device.
limits Generate correct scale type for specified limits
translate_qplot_lattice Translating between qplot and lattice
stat_density 1d kernel density estimate.
position_jitterdodge Adjust position by simultaneously dodging and jittering
ggplot_gtable Build a plot with all the usual bits and pieces.
stat_binhex Bin 2d plane into hexagons.
scale_area Scale area instead of radius (for size).
interleave Interleave (or zip) multiple vectors into a single vector.
+.gg Modify a ggplot or theme object by adding on new components.
discrete_scale Discrete scale constructor.
geom_hline Horizontal line.
facet Facet specification.
my_plot Create a plot.
summary.ggplot Displays a useful description of a ggplot object
geom_vline Line, vertical.
translate_qplot_gpl Translating between qplot and Graphics Production Library (GPL)
stat_sum Sum unique values. Useful for overplotting on scatterplots.
stat_function Superimpose a function.
stat_ydensity 1d kernel density estimate along y axis, for violin plot.
theme_blank Deprecated theme_xx functions
ggplot_build Build ggplot for rendering.
rweave Row weave.
stat_ellipse Plot data ellipses.
scale_colour_brewer Sequential, diverging and qualitative colour scales from colorbrewer.org
add_theme Modify properties of an element in a theme object
annotation_logticks Annotation: log tick marks
continuous_scale Continuous scale constructor.
geom_boxplot Box and whiskers plot.
geom_histogram Histogram
geom_map Polygons from a reference map.
ggplot Create a new ggplot plot
position_identity Don't adjust position
scale_colour_hue Qualitative colour scale with evenly spaced hues.
stat_identity Identity statistic.
xlim Convenience functions to set the limits of the x and y axis.
theme_update Get, set and update themes.
stat_summary2d Apply funciton for 2D rectangular bins.
scale_size Size scale.
translate_qplot_ggplot Translating between qplot and ggplot
aes_all Given a character vector, create a set of identity mappings
aes_string Generate aesthetic mappings from a string/quoted objects
coord_quickmap Cartesian coordinates with an aspect ratio approximating Mercator projection.
fortify.sp Fortify method for classes from the sp package.
should_stop Used in examples to illustrate when errors should occur.
presidential Terms of 10 presidents from Eisenhower to Bush W.
annotation_raster Annotation: High-performance rectangular tiling.
geom_point Points, as for a scatterplot
geom_ribbon Ribbons, y range with continuous x values.
msleep An updated and expanded version of the mammals sleep dataset.
position_jitter Jitter points to avoid overplotting.
is.facet Is this object a facetting specification?
stat_ecdf Empirical Cumulative Density Function
stat_bin Bin data.
geom_density Display a smooth density estimate.
No Results!

Last month downloads

Details

Type Package
VignetteBuilder knitr
License GPL-2
URL http://ggplot2.org, https://github.com/hadley/ggplot2
BugReports https://github.com/hadley/ggplot2/issues
LazyData true
Collate 'aaa-.r' 'aaa-constants.r' 'aes-calculated.r' 'aes-colour-fill-alpha.r' 'aes-group-order.r' 'aes-linetype-size-shape.r' 'aes-position.r' 'aes.r' 'geom-.r' 'annotation-custom.r' 'annotation-logticks.r' 'geom-polygon.r' 'geom-map.r' 'annotation-map.r' 'geom-raster.r' 'annotation-raster.r' 'annotation.r' 'autoplot.r' 'bench.r' 'coord-.r' 'coord-cartesian-.r' 'coord-fixed.r' 'coord-flip.r' 'coord-map.r' 'coord-munch.r' 'coord-polar.r' 'coord-quickmap.R' 'coord-transform.r' 'facet-.r' 'facet-grid-.r' 'facet-labels.r' 'facet-layout.r' 'facet-locate.r' 'facet-null.r' 'facet-viewports.r' 'facet-wrap.r' 'fortify-lm.r' 'fortify-map.r' 'fortify-multcomp.r' 'fortify-spatial.r' 'fortify.r' 'geom-abline.r' 'geom-bar-.r' 'geom-bar-histogram.r' 'geom-bin2d.r' 'geom-blank.r' 'geom-boxplot.r' 'geom-crossbar.r' 'geom-defaults.r' 'geom-dotplot.r' 'geom-error.r' 'geom-errorh.r' 'geom-freqpoly.r' 'geom-hex.r' 'geom-hline.r' 'geom-linerange.r' 'geom-path-.r' 'geom-path-contour.r' 'geom-path-density2d.r' 'geom-path-line.r' 'geom-path-step.r' 'geom-point-.r' 'geom-point-jitter.r' 'geom-pointrange.r' 'geom-quantile.r' 'geom-rect.r' 'geom-ribbon-.r' 'geom-ribbon-density.r' 'geom-rug.r' 'geom-segment.r' 'geom-smooth.r' 'geom-text.r' 'geom-tile.r' 'geom-violin.r' 'geom-vline.r' 'ggplot2.r' 'grob-absolute.r' 'grob-dotstack.r' 'grob-null.r' 'guide-colorbar.r' 'guide-legend.r' 'guides-.r' 'guides-axis.r' 'guides-grid.r' 'labels.r' 'layer.r' 'limits.r' 'panel.r' 'plot-build.r' 'plot-construction.r' 'plot-last.r' 'plot-render.r' 'plot.r' 'position-.r' 'position-collide.r' 'position-dodge.r' 'position-fill.r' 'position-identity.r' 'position-jitter.r' 'position-jitterdodge.R' 'position-stack.r' 'quick-plot.r' 'save.r' 'scale-.r' 'scale-alpha.r' 'scale-area.r' 'scale-brewer.r' 'scale-continuous.r' 'scale-date.r' 'scale-datetime.r' 'scale-discrete-.r' 'scale-gradient.r' 'scale-gradient2.r' 'scale-gradientn.r' 'scale-grey.r' 'scale-hue.r' 'scale-identity.r' 'scale-linetype.r' 'scale-manual.r' 'scale-shape.r' 'scale-size.r' 'scales-.r' 'stat-.r' 'stat-bin.r' 'stat-bin2d.r' 'stat-bindot.r' 'stat-binhex.r' 'stat-boxplot.r' 'stat-contour.r' 'stat-density-2d.r' 'stat-density.r' 'stat-ecdf.r' 'stat-ellipse.R' 'stat-function.r' 'stat-identity.r' 'stat-qq.r' 'stat-quantile.r' 'stat-smooth-methods.r' 'stat-smooth.r' 'stat-spoke.r' 'stat-sum.r' 'stat-summary-2d.r' 'stat-summary-hex.r' 'stat-summary.r' 'stat-unique.r' 'stat-vline.r' 'stat-ydensity.r' 'summary.r' 'templates.r' 'theme-defaults.r' 'theme-elements.r' 'theme.r' 'translate-qplot-base.r' 'translate-qplot-ggplot.r' 'translate-qplot-gpl.r' 'translate-qplot-lattice.r' 'utilities-break.r' 'utilities-grid.r' 'utilities-help.r' 'utilities-layer.r' 'utilities-matrix.r' 'utilities-resolution.r' 'utilities-table.r' 'utilities.r' 'xxx-digest.r' 'zxx.r' 'zzz.r'
Packaged 2015-03-16 20:29:42 UTC; winston
NeedsCompilation no
Repository CRAN
Date/Publication 2015-03-17 17:49:38

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/ggplot2)](http://www.rdocumentation.org/packages/ggplot2)