LabelRepelMapping

class LabelRepelMapping(var x: Any? = null, var y: Any? = null, var label: Any? = null, var alpha: Any? = null, var color: Any? = null, var fill: Any? = null, var size: Any? = null, var family: Any? = null, var fontface: Any? = null, var hjust: Any? = null, var vjust: Any? = null, var angle: Any? = null, var lineheight: Any? = null, var shape: Any? = null, var pointSize: Any? = null, var pointStroke: Any? = null, var segmentColor: Any? = null, var segmentSize: Any? = null, var segmentAlpha: Any? = null, var linetype: Any? = null, var group: Any? = null, var paint_a: Any? = null, var paint_b: Any? = null, var paint_c: Any? = null) : LabelRepelAesthetics, WithGroupOption, PaintAesthetics

Aesthetic mappings supported by geomLabelRepel().

Parameters

x

X-axis value.

y

Y-axis value.

label

Text to add to plot.

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.

fill

Background color of the label. For more info see: aesthetics.html#color-and-fill.

size

Font size.

family

For more info see: aesthetics.html#font-family.

fontface

For more info see: aesthetics.html#font-face.

hjust

horizontal text alignment relative to the x-coordinate. Possible values: 0 or "left" - left-aligned (text starts at x), 0.5 or "middle" (default) - text is centered on x, 1 or "right" - right-aligned (text ends at x). There are two special alignments: "inward" (aligns text towards the plot center) and "outward" (away from the plot center).

vjust

vertical text alignment relative to the y-coordinate. Possible values: 0 or "bottom" - bottom-aligned (bottom of text at y), 0.5 or "center" (default) - middle of text at y, 1 or "top" - top-aligned (top of text at y). There are two special alignments: "inward" (aligns text towards the plot center) and "outward" (away from the plot center).

angle

Label rotation angle in degrees.

lineheight

Line height multiplier applied to the font size in the case of multi-line text.

shape

Shape of the point. For more info see: aesthetics.html#point-shapes.

pointSize

A value representing the visual size of the point associated with the label. Set to 0 to prevent label repulsion from data points.

pointStroke

Width of the point border.

segmentColor

Color of the line segment connecting the label to the point.

segmentSize

Width of the line segment connecting the label to the point.

segmentAlpha

Transparency level of the line segment. Understands numbers between 0 and 1.

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.

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, label: Any? = null, alpha: Any? = null, color: Any? = null, fill: Any? = null, size: Any? = null, family: Any? = null, fontface: Any? = null, hjust: Any? = null, vjust: Any? = null, angle: Any? = null, lineheight: Any? = null, shape: Any? = null, pointSize: Any? = null, pointStroke: Any? = null, segmentColor: Any? = null, segmentSize: Any? = null, segmentAlpha: Any? = null, linetype: 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 angle: Any?
Link copied to clipboard
open override var color: Any?
Link copied to clipboard
open override var family: Any?
Link copied to clipboard
open override var fill: Any?
Link copied to clipboard
open override var fontface: Any?
Link copied to clipboard
open override var group: Any?
Link copied to clipboard
open override var hjust: Any?
Link copied to clipboard
open override var label: Any?
Link copied to clipboard
open override var lineheight: 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 pointSize: Any?
Link copied to clipboard
open override var pointStroke: Any?
Link copied to clipboard
open override var segmentAlpha: Any?
Link copied to clipboard
open override var segmentColor: Any?
Link copied to clipboard
open override var segmentSize: Any?
Link copied to clipboard
open override var shape: Any?
Link copied to clipboard
open override var size: Any?
Link copied to clipboard
open override var vjust: Any?
Link copied to clipboard
open override var x: Any?
Link copied to clipboard
open override var y: Any?

Functions

Link copied to clipboard
open fun groupOption(): Options