class geom_density : AreaAesthetics, DensityStatAesthetics, DensityStatParameters, LayerBase
Display a density estimate, which is a smoothed version of the histogram.
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, optional.
The statistical transformation to use on the data for this layer, as a string. Supported transformations:
"identity" (leaves the data unchanged), "count" (counts number of points with same x-axis coordinate),
"bin" (counts number of points with x-axis coordinate in the same bin), "smooth" (performs smoothing -
linear default)
position
- string, optional.
Position adjustment, either as a string ("identity", "stack", "dodge", ...), or the result of a call to a
position adjustment function.
alpha
- transparency level of a layer
Understands numbers between 0 and 1.
color
- (colour) color of a geometry lines.
Can be continuous or discrete. For continuous value this will be a color gradient between two colors.
size
- lines width.
Defines line width
linetype
- type of the line of tile's border.
Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash",
5 = "longdash", 6 = "twodash".
fill
- color of geometry filling.
weight
- used by "density" stat to compute weighted density.
mapping
- set of aesthetic mappings.
Aesthetic mappings describe the way that variables in the data are
mapped to plot "aesthetics".
<init> |
Display a density estimate, which is a smoothed version of the histogram. geom_density(data: Map<*, *>? = null, stat: StatOptions = Stat.density(), position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, x: Double? = null, y: Double? = null, alpha: Number? = null, color: Any? = null, fill: Any? = null, linetype: Any? = null, size: Number? = null, weight: Any? = null, bw: Any? = null, kernel: String? = null, n: Int? = null, trim: Boolean? = null, adjust: Number? = null, mapping: DensityMapping.() -> Unit = {}) |
adjust |
val adjust: Number? |
alpha |
transparency level of a layer Understands numbers between 0 and 1. val alpha: Number? |
bw |
val bw: Any? |
color |
(colour) color of a geometry lines. Can be continuous or discrete. For continuous value this will be a color gradient between two colors. val color: Any? |
fill |
color of geometry filling. val fill: Any? |
kernel |
val kernel: String? |
linetype |
type of the line of tile's border. Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash". val linetype: Any? |
n |
val n: Int? |
size |
lines width. Defines line width val size: Number? |
trim |
val trim: Boolean? |
weight |
used by "density" stat to compute weighted density. val weight: Any? |
x |
x-axis coordinates. val x: Double? |
y |
val y: Double? |
seal |
fun seal(): Options
|
toSpec |
fun Layer.toSpec(): MutableMap<String, Any> |