plot-api / jetbrains.letsPlot.geom / geom_crossbar

geom_crossbar

class geom_crossbar : CrossBarAesthetics, LayerBase

Bar with horizontal median line

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 ggplot.

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.

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

x - x-axis coordinates

ymin - lower bound for error bar.

ymax - upper bound for error bar.

middle - position of median bar.

width - width of a 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.

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"

mapping - set of aesthetic mappings created by aes() function. Aesthetic mappings describe the way that variables in the data are mapped to plot "aesthetics".

Constructors

<init>

Bar with horizontal median line

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

Properties

alpha

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

val alpha: Double?

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: 2.5 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?

middle

position of median bar.

val middle: Double?

shape

val shape: Any?

size

lines width.

val size: Double?

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?

Functions

seal

fun seal(): Options

Extension Functions

toSpec

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