Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


⚠️There's a newer version (3.5.2) of this package.Take me there.

ggplot2 (version 0.9.3.1)

An implementation of the Grammar of Graphics

Description

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 the ggplot2 website for more information, documentation and examples.

Copy Link

Version

Install

install.packages('ggplot2')

Monthly Downloads

2,211,148

Version

0.9.3.1

License

GPL-2

Maintainer

Hadley Wickham

Last Published

March 2nd, 2013

Functions in ggplot2 (0.9.3.1)

absoluteGrob

Absolute grob
coord_polar

Polar coordinates.
annotate

Create an annotation layer.
borders

Create a layer of map borders.
element_blank

Theme element: blank. This theme element draws nothing, and assigns no space
cut_interval

Cut numeric vector into intervals of equal length.
geom_path

Connect observations in original order
gg_dep

Give a deprecation error, warning, or messsage, depending on version number.
expand_limits

Expand the plot limits with data.
aes_all

Given a character vector, create a set of identity mappings
continuous_scale

Continuous scale constructor.
scale_manual

Create your own discrete scale.
annotation_raster

Annotation: High-performance rectangular tiling.
theme_blank

Deprecated theme_xx functions
geom_boxplot

Box and whiskers plot.
coord_map

Map projections.
coord_flip

Flipped cartesian coordinates.
fortify.sp

Fortify method for classes from the sp package.
geom_hline

Horizontal line.
aes_linetype_size_shape

Differentiation related aesthetics: linetype, size, shape
ggsave

Save a ggplot with sensible defaults
geom_text

Textual annotations.
aes_colour_fill_alpha

Colour related aesthetics: colour, fill and alpha
coord

New coordinate system.
facet_wrap

Wrap a 1d ribbon of panels into 2d.
aes

Generate aesthetic mappings that describe how variables in the data are mapped to visual properties (aesthetics) of geoms.
calc_element

Calculate the element properties, by inheriting properties from its parents
cweave

Col weave
last_plot

Retrieve the last plot to be modified or created.
geom_errorbarh

Horizontal error bars
guides

Set guides for each scale.
add_theme

Modify properties of an element in a theme object
discrete_scale

Discrete scale constructor.
interleave

Interleave (or zip) multiple vectors into a single vector.
geom_ribbon

Ribbons, y range with continuous x values.
stat_ecdf

Empirical Cumulative Density Function
scale_size_area

Scale area instead of radius, for size.
geom_bin2d

Add heatmap of 2d bin counts.
geom_jitter

Points, jittered to reduce overplotting.
geom_hex

Hexagon bining.
print.ggplot

Draw plot on current graphics device.
aes_group_order

Aesthetics: group, order
geom_freqpoly

Frequency polygon.
geom_quantile

Add quantile lines from a quantile regression.
coord_fixed

Cartesian coordinates with fixed relationship between x and y scales.
aes_string

Generate aesthetic mappings from a string
fortify-multcomp

Fortify methods for objects produced by multcomp
geom_smooth

Add a smoothed conditional mean.
geom_area

Area plot.
position_identity

Don't adjust position
autoplot

Create a complete ggplot appropriate to a particular data type
position_fill

Stack overlapping objects on top of one another, and standardise to have equal height.
labs

Change axis labels and legend titles
annotation_logticks

Annotation: log tick marks
geom_segment

Single line segments.
is.ggplot

Reports whether x is a ggplot object
rweave

Row weave.
geom_blank

Blank, draws nothing.
element_text

Theme element: text.
element_line

Theme element: line.
geom_raster

High-performance rectangular tiling.
ggorder

A plot to investigate the order in which observations were recorded.
label_parsed

Label facets with parsed label.
aes_auto

Automatic aesthetic mapping
facet_grid

Lay out panels in a grid.
geom_line

Connect observations, ordered by x value.
movies

Movie information and user ratings from IMDB.com.
coord_expand_defaults

Set the default expand values for the scale, if NA
scale_colour_grey

Sequential grey colour scale.
facet

Facet specification.
coord_trans

Transformed cartesian coordinate system.
geom_bar

Bars, rectangles with bases on x-axis
geom_errorbar

Error bars.
ggfluctuation

Create a fluctuation plot.
geom_linerange

An interval represented by a vertical line.
geom_violin

Violin plot.
geom_pointrange

An interval represented by a vertical line, with a point in the middle.
element_rect

Theme element: rectangle.
ggplot

Create a new ggplot plot
scale_colour_brewer

Sequential, diverging and qualitative colour scales from colorbrewer.org
stat_contour

Calculate contours of 3d data.
geom_rug

Marginal rug plots.
scale_x_datetime

Position scale, date
annotation_map

Annotation: maps.
stat_abline

Add a line with slope and intercept.
scale_x_discrete

Discrete position.
+.gg

Modify a ggplot or theme object by adding on new components.
scale_size

Size scale.
aes_position

Position related aesthetics: x, y, xmin, xmax, ymin, ymax, xend, yend
stat_sum

Sum unique values. Useful for overplotting on scatterplots.
stat_density

1d kernel density estimate.
stat_smooth

Add a smoother.
scale_colour_gradient2

Diverging colour gradient
scale_colour_hue

Qualitative colour scale with evenly spaced hues.
stat_summary2d

Apply funciton for 2D rectangular bins.
hmisc

geom_contour

Display contours of a 3d surface in 2d.
is.theme

Reports whether x is a theme object
ggmissing

Create a plot to illustrate patterns of missing values.
label_value

Label facets with their value. This is the default labelling scheme.
stat_qq

Calculation for quantile-quantile plot.
guide_legend

Legend guide.
map_data

Create a data frame of map data.
geom_crossbar

Hollow bar with middle indicated by horizontal line.
theme

Set theme elements
geom_density

Display a smooth density estimate.
facet_null

Facet specification: a single panel.
stat_summary

Summarise y values at every unique x.
is.coord

Is this object a coordinate system?
scale_x_date

Position scale, date
ggpcp

Make a parallel coordinates plot.
stat_bindot

Bin data for dot plot.
geom_abline

Line specified by slope and intercept.
geom_density2d

Contours from a 2d density estimate.
label_bquote

Label facet with 'bquoted' expressions
stat_vline

Add a vertical line
geom_polygon

Polygon, a filled path.
mpg

Fuel economy data from 1999 and 2008 for 38 popular models of car
guide_colourbar

Contiuous colour bar guide.
ggplot_gtable

Build a plot with all the usual bits and pieces.
msleep

An updated and expanded version of the mammals sleep dataset.
mean_se

Calculate mean and standard errors on either side.
midwest

Midwest demographics.
position_jitter

Jitter points to avoid overplotting.
limits

Generate correct scale type for specified limits
presidential

Terms of 10 presidents from Eisenhower to Bush W.
opts

Build a theme (or partial theme) from theme elements
benchplot

Benchmark plot creation time. Broken down into construct, build, render and draw times.
stat_unique

Remove duplicates.
stat_density2d

2d density estimation.
theme_grey

A theme with grey background and white gridlines.
fortify

Fortify a model with data.
rel

Relative sizing for theme elements
scale_colour_gradientn

Smooth colour gradient between n colours
stat_quantile

Continuous quantiles.
stat_binhex

Bin 2d plane into hexagons.
stat_bin2d

Count number of observation in rectangular bins.
stat_summary_hex

Apply funciton for 2D hexagonal bins.
geom_dotplot

Dot plot
scale_area

Scale area instead of radius (for size).
fortify.map

Fortify method for map objects.
geom_tile

Tile plane with rectangles.
geom_step

Connect observations by stairs.
scale_identity

Use values without scaling.
cut_number

Cut numeric vector into intervals containing equal number of points.
is.rel

Reports whether x is a rel object
ggstructure

A plot which aims to reveal gross structural anomalies in the data.
summary.ggplot

Displays a useful description of a ggplot object
geom_vline

Line, vertical.
stat_identity

Identity statistic.
my_plot

Create a plot.
ggplot.data.frame

Create a new ggplot plot from a data frame
ggplot2

ggplot2.
position_stack

Stack overlapping objects on top of one another.
layer

Create a new layer
theme_update

Get, set and update themes.
stat_function

Superimpose a function.
ggplot_build

Build ggplot for rendering.
ggscale

Components of a scale:
is.facet

Is this object a facetting specification?
scale_linetype

Scale for line patterns.
position_dodge

Adjust position by dodging overlaps to the side.
theme_bw

A theme with white background and black gridlines.
xlim

Convenience functions to set the limits of the x and y axis.
translate_qplot_ggplot

Translating between qplot and ggplot
zeroGrob

The zero grob draws nothing and has zero size.
theme_minimal

A minimalistic theme with no background annotations.
theme_classic

A classic-looking theme, with x and y axis lines and no gridlines.
waiver

A waiver object.
update_labels

Update axis/legend labels
translate_qplot_gpl

Translating between qplot and Graphics Production Library (GPL)
translate_qplot_lattice

Translating between qplot and lattice
stat_spoke

Convert angle and radius to xend and yend.
stat_ydensity

1d kernel density estimate along y axis, for violin plot.
coord_cartesian

Cartesian coordinates.
diamonds

Prices of 50,000 round cut diamonds
fortify.lm

Supplement the data fitted to a linear model with model fit statistics.
geom_map

Polygons from a reference map.
geom_point

Points, as for a scatterplot
geom_rect

2d rectangles.
plotmatrix

Code to create a scatterplot matrix (experimental)
qplot

Quick plot
scale_alpha

Alpha scales.
scale_shape

Scale for shapes, aka glyphs.
stat_hline

Add a horizontal line
annotation_custom

Annotation: Custom grob.
geom_histogram

Histogram
ggplotGrob

Generate a ggplot2 plot grob.
label_both

Label facets with value and variable.
resolution

Compute the "resolution" of a data vector.
seals

Vector field of seal movements.
stat_bin

Bin data.
update_geom_defaults

Modify geom/stat aesthetic defaults for future plots
economics

US economic time series.
scale_colour_gradient

Smooth gradient between two colours
scale_x_continuous

Continuous position scales (x & y).
should_stop

Used in examples to illustrate when errors should occur.
stat_boxplot

Calculate components of box and whisker plot.
update_element

Update theme param
translate_qplot_base

Translating between qplot and base graphics