plot-api / jetbrains.letsPlot.geom / geom_pointrange

geom_pointrange

class geom_pointrange : PointRangeAesthetics, LayerBase

Add a vertical line defined by upper and lower value with midpoint at y location.

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.

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.

fatten - : number, default: 5.0 A multiplicative factor applied to size of the middle bar

x - x-axis coordinates.

y - position of mid-point,

ymin - lower bound for error bar.

ymax - upper bound for error bar.

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.

fill - color of geometry filling.

size - lines width, size of mid-point.

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"

shape - shape of the mid-point.

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

Constructors

<init>

Add a vertical line defined by upper and lower value with midpoint at y location.

geom_pointrange(data: Map<*, *>? = null, stat: StatOptions = Stat.identity, position: PosOptions = Pos.identity, showLegend: Boolean = true, sampling: SamplingOptions? = null, tooltips: TooltipOptions? = null, fatten: Double? = null, x: Double? = null, y: Double? = null, ymin: Double? = null, ymax: Double? = null, alpha: Number? = null, color: Any? = null, fill: Any? = null, linetype: Any? = null, shape: Any? = null, size: Number? = null, mapping: PointRangeMapping.() -> Unit = {})

Properties

alpha

transparency level of a layer 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?

fatten

: number, default: 5.0 A multiplicative factor applied to size of the middle bar

val fatten: Double?

fill

color of geometry filling.

val fill: Any?

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?

shape

shape of the mid-point.

val shape: Any?

size

lines width, size of mid-point.

val size: Number?

x

x-axis coordinates.

val x: Double?

y

position of mid-point,

val y: Double?

ymax

upper bound for error bar.

val ymax: Double?

ymin

lower bound for error bar.

val ymin: Double?

Functions

seal

fun seal(): Options

Extension Functions

toSpec

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