PieMapping

class PieMapping(var x: Any? = null, var y: Any? = null, var slice: Any? = null, var explode: Any? = null, var size: Any? = null, var alpha: Any? = null, var color: Any? = null, var stroke: Any? = null, var group: Any? = null, var weight: Any? = null, var fill: Any? = null, var paint_a: Any? = null, var paint_b: Any? = null, var paint_c: Any? = null) : PieAesthetics, Count2dStatAesthetics, WithGroupOption, PaintAesthetics

Aesthetic mappings supported by geomPie().

Parameters

x

X-axis value.

y

Y-axis value.

slice

Values associated to pie sectors.

explode

Values to explode slices away from their center point, detaching it from the main pie.

size

Pie diameter.

alpha

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

color

Color of inner and outer arcs of pie sector. For more info see: aesthetics.html#color-and-fill.

stroke

Width of inner and outer arcs of pie sector.

group

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

weight

Used by Stat.count2d() stat to compute weighted sum instead of simple count.

fill

Fill color. For more info see: aesthetics.html#color-and-fill.

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, slice: Any? = null, explode: Any? = null, size: Any? = null, alpha: Any? = null, color: Any? = null, stroke: Any? = null, group: Any? = null, weight: Any? = null, fill: 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 explode: Any?
Link copied to clipboard
open override var fill: Any?
Link copied to clipboard
open override var group: 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 slice: Any?
Link copied to clipboard
open override var stroke: Any?
Link copied to clipboard
open override var weight: 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