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.
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.
Result of the call to the samplingXxx()
function. To prevent any sampling for this layer pass value samplingNone
. For more info see sampling.md.
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. String in the following formats:
RGB/RGBA (e.g. "rgb(0, 0, 255)")
HEX (e.g. "#0000FF")
color name (e.g. "red")
role name ("pen", "paper" or "brush")
Or an instance of the java.awt.Color
class.
Transparency level of a layer. Understands numbers between 0 and 1.
Color of the geometry. String in the following formats:
RGB/RGBA (e.g. "rgb(0, 0, 255)")
HEX (e.g. "#0000FF")
color name (e.g. "red")
role name ("pen", "paper" or "brush")
Or an instance of the java.awt.Color
class.
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".