segment

class segment(val x: Number? = null, val y: Number? = null, val xend: Number? = null, val yend: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val sizeStart: Number? = null, val sizeEnd: Number? = null, val strokeStart: Number? = null, val strokeEnd: Number? = null, val colorBy: String? = null, val mapping: SegmentMapping.() -> Unit = {}) : GeomOptions, SegmentAesthetics, WithColorOption

Constructors

Link copied to clipboard
constructor(x: Number? = null, y: Number? = null, xend: Number? = null, yend: Number? = null, alpha: Number? = null, color: Any? = null, linetype: Any? = null, size: Number? = null, sizeStart: Number? = null, sizeEnd: Number? = null, strokeStart: Number? = null, strokeEnd: Number? = null, colorBy: String? = null, mapping: SegmentMapping.() -> Unit = {})

Properties

Link copied to clipboard
open override val alpha: Number? = null

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

Link copied to clipboard
open override val color: Any? = null

Color of the geometry. For more info see: aesthetics.html#color-and-fill.

Link copied to clipboard
open override val colorBy: String? = null

default = "color" ("fill", "color", "paint_a", "paint_b", "paint_c"). Defines the color aesthetic for the layer.

Link copied to clipboard
val kind: GeomKind
Link copied to clipboard
open override val linetype: Any? = null

Type of the line. Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"), a hex string (up to 8 digits for dash-gap lengths), or a pattern offset to listOf(dash, gap, ...) / listOf(dash, gap, ...). For more info see: aesthetics.html#line-types.

Link copied to clipboard
val mapping: Options
Link copied to clipboard
open override val parameters: Options
Link copied to clipboard
open override val size: Number? = null

Line width.

Link copied to clipboard
open override val sizeEnd: Number? = null

Offset from the segment end coordinate. Usually equal to the size of the point object from which the segment ends to avoid overlapping with it.

Link copied to clipboard
open override val sizeStart: Number? = null

Offset from the segment start coordinate. Usually equal to the size of the point object from which the segment starts to avoid overlapping with it.

Link copied to clipboard
open override val strokeEnd: Number? = null

Offset from the segment end coordinate. Usually equal to the stroke of the point object from which the segment ends to avoid overlapping with it.

Link copied to clipboard
open override val strokeStart: Number? = null

Offset from the segment start coordinate. Usually equal to the stroke of the point object from which the segment starts to avoid overlapping with it.

Link copied to clipboard
open override val x: Number? = null

X-axis value.

Link copied to clipboard
open override val xend: Number? = null

X-axis value.

Link copied to clipboard
open override val y: Number? = null

Y-axis value.

Link copied to clipboard
open override val yend: Number? = null

Y-axis value.