geom Boxplot
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.
Notes
Computed variables:
..lower.. : lower hinge, 25% quantile.
..middle.. : median, 50% quantile.
..upper.. : upper hinge, 75% quantile.
..ymin.. : lower whisker = smallest observation greater than or equal to lower hinge - 1.5 * IQR.
..ymax.. : upper whisker = largest observation less than or equal to upper hinge + 1.5 * IQR.
To hide axis tooltips, set "blank" or the result of elementBlank()
to the axisTooltip
or axisTooltipX
parameter of the theme()
.
Examples
Parameters
The data to be displayed. If null, the default, the data is inherited from the plot data as specified in the call to letsPlot.
default = Stat.boxplot()
. The statistical transformation to use on the data for this layer. Supported transformations: Stat.identity
, Stat.bin()
, Stat.count()
, etc. see Stat.
default = positionDodge()
. Position adjustment: positionIdentity
, positionStack()
, positionDodge()
, etc. see Position.
default = true. false - do not show legend for this layer.
default = true. false - do not combine the layer aesthetic mappings with the plot shared mappings.
String or result of the call to the layerKey()
function. The key to show in the manual legend. Specifies the text for the legend label or advanced settings using the layerKey()
function.
Result of the call to the layerTooltips()
function. Specifies appearance, style and content. Set tooltips = tooltipsNone
to hide tooltips from the layer.
Specifies the axis that the layer's stat and geom should run along. The default value (null
) automatically determines the orientation based on the aesthetic mapping. If the automatic detection doesn't work, it can be set explicitly by specifying the "x" or "y" orientation.
Default transparency aesthetic for outliers.
Color aesthetic for outliers.
Fill aesthetic for outliers.
Shape aesthetic for outliers. For more info see: aesthetics.html#point-shapes.
Size aesthetic for outliers.
Default width of the border for outliers.
Rotation angle of the shape for outliers, in degrees.
default = false. If false make a standard box plot. If true, boxes are drawn with widths proportional to the square-roots of the number of observations in the groups.
default = 1.0. A multiplicative factor applied to size of the middle bar.
default = 0.0. A multiplicative factor applied to the box width to draw horizontal segments on whiskers.
default = 1.5. Length of the whiskers as multiple of IQR.
default = "color" ("fill", "color", "paint_a", "paint_b", "paint_c"). Defines the color aesthetic for the geometry.
default = "fill" ("fill", "color", "paint_a", "paint_b", "paint_c"). Defines the fill aesthetic for the geometry.
Lower hinge, 25% quantile.
Median, 50% quantile.
Upper hinge, 75% quantile.
Lower whisker - the smallest observation greater than or equal to the lower hinge - 1.5 * IQR
Upper whisker - the largest observation less than or equal to the upper hinge + 1.5 * IQR
Width of boxplot. Typically ranges between 0 and 1. Values that are greater than 1 lead to overlapping of the boxes.
Transparency level of a layer. Understands numbers between 0 and 1.
Color of the geometry. For more info see: aesthetics.html#color-and-fill.
Fill color. For more info see: aesthetics.html#color-and-fill.
Lines width.
Type of the line of border. Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"), a hex string (up to 8 digits for dash-gap lengths), or a pattern offset to listOf(dash, gap, ...)
/ listOf(dash, gap, ...)
. For more info see: aesthetics.html#line-types.
Set of aesthetic mappings. Aesthetic mappings describe the way that variables in the data are mapped to plot "aesthetics".