class geom_bin2d : TileAesthetics, Bin2dStatAesthetics, Bin2dStatParameters, LayerBase
Divide the plane into a grid and color the bins by the count of cases in them.
data
- dictionary or pandas DataFrame, optional.
The data to be displayed in this layer. If None, the default, the data
is inherited from the plot data as specified in the call to lets_plot.
stat
- string, default: "bin".
The statistical transformation to use on the data for this layer.
position
- string, optional.
Position adjustment, either as a string ("identity", "stack", "dodge", ...), or the result of a call to a
position adjustment function.
tooltips
- result of the call to the layer_tooltips() function.
Specifies appearance, style and content.
bins
- pair of numbers, default: (30,30)
Number of bins in both directions, vertical and horizontal. Overridden by binwidth.
binWidth
- pair of numbers, optional
The width of the bins in both directions, vertical and horizontal. Overrides bins
.
The default is to use bin widths that cover the entire range of the data.
drop
- : bool, optional, default: True
Specifies whether to remove all bins with 0 counts.
alpha
- number in [0..1
]
Transparency level of a layer.
color
- (colour) color of a geometry lines.
fill
- color of geometry filling.
linetype
- type of the line.
Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash",
5 = "longdash", 6 = "twodash".
mapping
- set of aesthetic mappings.
Aesthetic mappings describe the way that variables in the data are
mapped to plot "aesthetics".
<init> |
Divide the plane into a grid and color the bins by the count of cases in them. geom_bin2d(data: Map<*, *>? = null, stat: StatOptions = Stat.bin2d(), position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, tooltips: TooltipOptions? = null, x: Double? = null, y: Double? = null, width: Double? = null, height: Double? = null, alpha: Number? = null, color: Any? = null, fill: Any? = null, linetype: Any? = null, size: Number? = null, weight: Any? = null, bins: Pair<Int, Int>? = null, binWidth: Pair<Number?, Number?>? = null, drop: Boolean? = null, mapping: Bin2dMapping.() -> Unit = {}) |
alpha |
number in val alpha: Number? |
bins |
pair of numbers, default: (30,30) Number of bins in both directions, vertical and horizontal. Overridden by binwidth. val bins: Pair<Int, Int>? |
binWidth |
pair of numbers, optional
The width of the bins in both directions, vertical and horizontal. Overrides val binWidth: Pair<Number?, Number?>? |
color |
(colour) color of a geometry lines. val color: Any? |
drop |
: bool, optional, default: True Specifies whether to remove all bins with 0 counts. val drop: Boolean? |
fill |
color of geometry filling. val fill: Any? |
height |
height of a tile. val height: Double? |
linetype |
type of the line. Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash". val linetype: Any? |
size |
lines width. val size: Number? |
weight |
val weight: Any? |
width |
width of a tile. val width: Double? |
x |
x-axis value. val x: Double? |
y |
y-axis value. val y: Double? |
seal |
fun seal(): Options
|
toSpec |
fun Layer.toSpec(): MutableMap<String, Any> |