SegmentMapping

class SegmentMapping(var x: Any? = null, var y: Any? = null, var xend: Any? = null, var yend: Any? = null, var alpha: Any? = null, var color: Any? = null, var linetype: Any? = null, var size: Any? = null, var sizeStart: Any? = null, var sizeEnd: Any? = null, var strokeStart: Any? = null, var strokeEnd: Any? = null, var group: Any? = null, var paint_a: Any? = null, var paint_b: Any? = null, var paint_c: Any? = null) : SegmentAesthetics, WithGroupOption, PaintAesthetics

Aesthetic mappings supported by geomSegment().

Parameters

x

X-axis value.

y

Y-axis value.

xend

X-axis value.

yend

Y-axis value.

alpha

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

color

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

linetype

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.

size

Line width.

sizeStart

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.

sizeEnd

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.

strokeStart

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.

strokeEnd

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.

group

Grouping key. If not set, grouping may be inferred from other aesthetics (e.g., color, size).

paint_a

Auxiliary paint channel A that can be used as either color or fill as needed. Map a variable here for composite/multi-channel color with a matching scale.

paint_b

Auxiliary paint channel B. See paint_a.

paint_c

Auxiliary paint channel C. See paint_a.

Constructors

Link copied to clipboard
constructor(x: Any? = null, y: Any? = null, xend: Any? = null, yend: Any? = null, alpha: Any? = null, color: Any? = null, linetype: Any? = null, size: Any? = null, sizeStart: Any? = null, sizeEnd: Any? = null, strokeStart: Any? = null, strokeEnd: Any? = null, group: Any? = null, paint_a: Any? = null, paint_b: Any? = null, paint_c: Any? = null)

Properties

Link copied to clipboard
open override var alpha: Any?
Link copied to clipboard
open override var color: Any?
Link copied to clipboard
open override var group: Any?
Link copied to clipboard
open override var linetype: Any?
Link copied to clipboard
open override var paint_a: Any?
Link copied to clipboard
open override var paint_b: Any?
Link copied to clipboard
open override var paint_c: Any?
Link copied to clipboard
open override var size: Any?
Link copied to clipboard
open override var sizeEnd: Any?
Link copied to clipboard
open override var sizeStart: Any?
Link copied to clipboard
open override var strokeEnd: Any?
Link copied to clipboard
open override var strokeStart: Any?
Link copied to clipboard
open override var x: Any?
Link copied to clipboard
open override var xend: Any?
Link copied to clipboard
open override var y: Any?
Link copied to clipboard
open override var yend: Any?

Functions

Link copied to clipboard
open fun groupOption(): Options