stat Count2D
Displays a distribution of counts by dividing the plane into a grid and counting the number of observations in each category of each rectangle.
Notes
Computed variables:
..count.. : number of points with same (x,y) coordinate.
..sum.. : total number of points with same (x,y) coordinate.
..prop.. : groupwise proportion.
..proppct.. : groupwise proportion in percent.
..sumprop.. : proportion of points with same (x,y) coordinate among all points in the dataset.
..sumpct.. : proportion of points with same (x,y) coordinate among all points in the dataset in percent.
To hide axis tooltips, set "blank" or the result of elementBlank()
to the axisTooltip
, axisTooltipX
or axisTooltipY
parameter of the theme()
.
Parameters
The data to be displayed in this layer. If null, the default, the data is inherited from the plot data as specified in the call to letsPlot.
The geometry to display the 2D count stat for this layer, default is Geom.pie()
, see Geom.
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.
Result of the call to the samplingXxx()
function. To prevent any sampling for this layer pass value samplingNone
. For more info see sampling.html.
X-axis value.
Y-axis value.
For pie geometry it is a values associated to pie sectors.
For pie geometry it is a values to explode slices away from their center point, detaching it from the main pie.
Geometry size.
Fill color. For more info see: aesthetics.html#color-and-fill.
Transparency level of a layer. Understands numbers between 0 and 1.
Color of the geometry. For more info see: aesthetics.html#color-and-fill.
Geometry border width.
Used by the stat to compute weighted sum instead of simple count.
default = "fill" ("fill", "color", "paint_a", "paint_b", "paint_c"). Defines the fill aesthetic for the geometry.
Set of aesthetic mappings. Aesthetic mappings describe the way that variables in the data are mapped to plot "aesthetics".