Package-level declarations
Examples
geomHistogram()
,geomDensity()
,geomVLine()
,geomFreqpoly()
,geomBoxplot()
: distributions.ipynbgeomViolin()
: geom_violin.ipynbgeomDotplot()
: geom_dotplot.ipynbgeomYDotplot()
: geom_ydotplot.ipynbgeomErrorBar()
,geomLine()
,geomPoint()
,geomBar()
,geomCrossbar()
,geomLineRange()
,geomPointRange()
: error_bars.ipynbgeomPoint()
,geomSmooth()
(statSmooth()
): scatter_plot.ipynb, geom_smooth.ipynbgeomDensity2D()
,geomDensity2DFilled()
,geomBin2D()
,geomPolygon()
,geomPoint()
: density_2d.ipynbgeomTile()
,geomContour()
,geomPolygon()
(Stat.contour()
),geomContourFilled()
: contours.ipynbgeomText()
: label_format.ipynbgeomLabel()
: geom_label.ipynbgeomQQ()
,geomQQLine()
,geomQQ2()
,geomQQ2Line()
,qqPlot()
: qq_plots.ipynb
Types
Adds a line with specified slope and intercept to the plot.
Displays the development of quantitative values over an interval. This is the continuous analog of geomBar()
.
Plots the sum of the y
and height
aesthetics versus x
. Heights of the ridges are relatively scaled.
Add a straight vertical or horizontal band to the plot.
Displays a bar chart which makes the height of the bar proportional to the number of observed variable values, mapped to x-axis.
Divides the plane into a grid and color the bins by the count of cases in them.
Draws nothing, but can be a useful way of ensuring common scales between different plots (see expandLimits()
). Also, can help to avoid the "No layers in plot" error when building plots using automated tools.
Displays contours of a 3d surface in 2d.
Fills contours of a 3d surface in 2d.
Sum unique values
Displays bars with horizontal median line. Represents a vertical interval, defined by x
, ymin
, ymax
, or a horizontal interval, defined by y
, xmin
, xmax
. The mean is represented by horizontal (vertical) line.
Draws a curved line.
Displays a density estimate, which is a smoothed version of the histogram.
Displays density function contour.
Draws filled contour bands.
Dotplot represents individual observations in a batch of data with circular dots. The diameter of a dot corresponds to the maximum width or bin width, depending on the binning algorithm.
Displays error bars defined by the upper and lower values. Represents a vertical interval, defined by x
, ymin
, ymax
, or a horizontal interval, defined by y
, xmin
, xmax
.
Displays a line chart which makes the y value proportional to the number of observed variable values, mapped to x axis.
Computes and draws a function.
Displays a 1d distribution by dividing variable mapped to x axis into bins and counting the number of observations in each bin.
Adds a straight horizontal line to the plot.
Displays jittered points, especially for discrete plots or dense plots.
Adds a text directly to the plot with a rectangle behind the text.
Connects points in the order of the variable on the x-axis. In the case points need to be connected in the order in which they appear in the data, use 'geomPath'.
Displays a line range defined by an upper and lower value. Represents a vertical interval, defined by x
, ymin
, ymax
, or a horizontal interval, defined by y
, xmin
, xmax
.
Draws lollipop chart.
Displays a filled closed path defined by the vertex coordinates of individual polygons. geomMap
is essentially the same as geomPolygon
but uses 'coordMap' as default coordinate system.
Connects observations in the order in which they appear in the data.
Draws pie chart.
Draws points defined by an x and y coordinate.
Adds a vertical line defined by upper and lower value with midpoint at y location. Represents a vertical interval, defined by x
, ymin
, ymax
, or a horizontal interval, defined by y
, xmin
, xmax
. The mid-point is defined by y
or x
, respectively.
Displays a filled closed path defined by the vertex coordinates of individual polygons.
Displays quantile-quantile plot.
Displays quantile-quantile plot.
Displays quantile-quantile fitting line.
Displays quantile-quantile fitting line.
Displays rectangles defined by the center of the tile (x, y). This is a high performance special function for same-sized tiles. Much faster than geomTile()
but doesn't support width/height and color.
Displays a rectangle defined by the four corners (xmin, xmax, ymin and ymax).
Displays a y interval defined by ymin
and ymax
. Draws a ribbon bounded by ymin
and ymax
, or a vertical ribbon, bounded by xmin
, xmax
.
Draws a straight line segment between points (x, y) and (xend, yend).
Adds a smoothed conditional mean.
Draws a straight line segment with given length and angle from the starting point.
Connects observations in the order in which they appear in the data by stairs.
Adds a text directly to the plot.
Displays a rectangle defined by the center of the tile and its size (x, y, width, height).
A violin plot is a mirrored density plot with an additional grouping as for a boxplot.
Adds a straight vertical line to the plot.
Y-dotplot represents individual observations in a batch of data with circular dots. The diameter of a dot corresponds to the maximum width or bin width, depending on the binning algorithm. geomYDotplot()
is an obvious blend of geomViolin()
and geomDotplot()
.
Functions
Displays the distribution of data based on a five number summary ("minimum", first quartile (Q1), median, third quartile (Q3), and "maximum"), and "outlying" points individually.
Displays image specified by RasterData.