plot-api / jetbrains.letsPlot.geom / geom_errorbar

geom_errorbar

class geom_errorbar : ErrorBarAesthetics, LayerBase

Error bars defined by an upper and lower value ymin and ymax.

Parameters

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.

x - x-axis coordinates.

ymin - lower bound for error bar.

ymax - upper bound for error bar.

width - width of a bar.

alpha - transparency level of a point 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.

linetype - type of the line. Codes and names: 0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash".

size - line width.

mapping - set of aesthetic mappings. Aesthetic mappings describe the way that variables in the data are mapped to plot "aesthetics".

Constructors

<init>

Error bars defined by an upper and lower value ymin and ymax.

geom_errorbar(data: Map<*, *>? = null, stat: StatOptions = Stat.identity, position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, x: Double? = null, ymin: Double? = null, ymax: Double? = null, width: Double? = null, alpha: Number? = null, color: Any? = null, linetype: Any? = null, size: Number? = null, mapping: ErrorBarMapping.() -> Unit = {})

Properties

alpha

transparency level of a point Understands numbers between 0 and 1.

val alpha: Number?

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?

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

line width.

val size: Number?

width

width of a bar.

val width: Double?

x

x-axis coordinates.

val x: Double?

ymax

upper bound for error bar.

val ymax: Double?

ymin

lower bound for error bar.

val ymin: Double?

Extension Functions

toSpec

fun Layer.toSpec(): MutableMap<String, Any>