plot-api / jetbrains.letsPlot.scale

Package jetbrains.letsPlot.scale

Functions

guide_colorbar

Continuous color bar guide. Color bar guide shows continuous color scales mapped onto values. Color bar is available with scale_fill and scale_color.

fun guide_colorbar(barWidth: Number? = null, barHeight: Number? = null, nbin: Int? = null): Map<String, Any>

guide_legend

Legend guide. Legend type guide shows key (i.e., geoms) mapped onto values.

fun guide_legend(nrow: Int? = null, ncol: Int? = null, byRow: Boolean? = null): Map<String, Any>

lims

Specifies data range for x and y axis. Set limits if you want values to be consistent across multiple plots. Setting limits will remove data outside of the limits.

fun lims(x: Any, y: Any): Feature

scale_alpha

Scales for alpha aesthetic

fun scale_alpha(range: Pair<Number, Number>? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Number? = null, guide: Any? = null, trans: String? = null): Scale

scale_alpha_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_alpha_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Number? = null, guide: Any? = null): Scale

scale_alpha_manual

Create your own discrete scale for alpha aesthetic

fun scale_alpha_manual(values: List<Double>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Number? = null, guide: Any? = null): Scale

scale_color_brewer

Sequential, diverging and qualitative color scales from colorbrewer.org for color aesthetic. Color schemes provided are particularly suited to display discrete values (levels of factors) on a map.

fun scale_color_brewer(type: String? = null, palette: Any? = null, direction: Number? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: Any? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_continuous

Defines smooth color gradient between two colors for color aesthetic.

fun scale_color_continuous(low: String? = null, high: String? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_discrete

Qualitative color scale with evenly spaced hues for color aesthetic. Defaults to the Brewer 'Set2' palette (or 'Set3' if the categories count > 8)

fun scale_color_discrete(direction: Int? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_color_gradient

Defines smooth color gradient between two colors (low-high) for color aesthetic.

fun scale_color_gradient(low: String, high: String, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_gradient2

Defines diverging color gradient (low-mid-high) for color aesthetic.

fun scale_color_gradient2(low: String, mid: String, high: String, midpoint: Double = 0.0, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_grey

Sequential grey color scale for color aesthetic. The palette is computed using HSV (hue, saturation, value) color model.

fun scale_color_grey(start: Number? = null, end: Number? = null, direction: Int? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_hue

Qualitative color scale with evenly spaced hues for color aesthetic.

fun scale_color_hue(h: Pair<Int, Int>? = null, c: Int? = null, l: Int? = null, hstart: Int? = null, direction: Int? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_color_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_color_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_color_manual

Create your own discrete scale for color aesthetic

fun scale_color_manual(values: List<Any>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_fill_brewer

Sequential, diverging and qualitative color scales from colorbrewer.org for fill aesthetic. Color schemes provided are particularly suited to display discrete values (levels of factors) on a map.

fun scale_fill_brewer(type: String? = null, palette: Any? = null, direction: Number? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: Any? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_continuous

Defines smooth color gradient between two colors for fill aesthetic.

fun scale_fill_continuous(low: String? = null, high: String? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_discrete

Qualitative color scale with evenly spaced hues for fill aesthetic. Defaults to the Brewer 'Set2' palette (or 'Set3' if the categories count > 8)

fun scale_fill_discrete(direction: Int? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_fill_gradient

Defines smooth color gradient between two colors (low-high) for fill aesthetic.

fun scale_fill_gradient(low: String, high: String, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_gradient2

Defines diverging color gradient (low-mid-high) for fill aesthetic.

fun scale_fill_gradient2(low: String, mid: String, high: String, midpoint: Double = 0.0, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_grey

Sequential grey color scale for fill aesthetic. The palette is computed using HSV (hue, saturation, value) color model.

fun scale_fill_grey(start: Number? = null, end: Number? = null, direction: Int? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_hue

Qualitative color scale with evenly spaced hues for fill aesthetic.

fun scale_fill_hue(h: Pair<Int, Int>? = null, c: Int? = null, l: Int? = null, hstart: Int? = null, direction: Int? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Any? = null, guide: Any? = null, trans: String? = null): Scale

scale_fill_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_fill_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_fill_manual

Create your own discrete scale for fill aesthetic

fun scale_fill_manual(values: List<Any>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_linetype_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_linetype_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_linetype_manual

Create your own discrete scale for linetype aesthetic

fun scale_linetype_manual(values: List<Number>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_shape

Scale for shapes

fun scale_shape(solid: Boolean? = null, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_shape_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_shape_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_shape_manual

Create your own discrete scale for shape aesthetic

fun scale_shape_manual(values: List<Number>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Any? = null, guide: Any? = null): Scale

scale_size

Continuous scale for size (~radius)

fun scale_size(range: Pair<Number, Number>? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Number? = null, guide: Any? = null, trans: String? = null): Scale

scale_size_area

Continuous scale for size (~radius) that maps 0 value to 0 size

fun scale_size_area(maxSize: Number? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Number? = null, guide: Any? = null, trans: String? = null): Scale

scale_size_identity

Use this scale when your data has already been scaled. I.e. it already represents aesthetic values that ggplot2 can handle directly. This will not produce a legend unless you also supply the breaks and labels.

fun scale_size_identity(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Number? = null, guide: Any? = null): Scale

scale_size_manual

Create your own discrete scale for size aesthetic

fun scale_size_manual(values: List<Number>, name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, naValue: Number? = null, guide: Any? = null): Scale

scale_x_continuous

Continuous scale for x axis

fun scale_x_continuous(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null, trans: String? = null): Scale

scale_x_datetime

Continuous position scale (x).

fun scale_x_datetime(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: Pair<Any?, Any?>? = null, expand: List<Number>? = null, naValue: Any? = null): Scale

scale_x_discrete

Discrete scale for x axis

fun scale_x_discrete(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, expand: List<Number>? = null, naValue: Number? = null, reverse: Boolean? = null): Scale

scale_x_discrete_reversed

Reversed discrete scale for x axis

fun scale_x_discrete_reversed(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_x_log10

Continuous position scale (x) where trans='log10'

fun scale_x_log10(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_x_reverse

Continuous position scales (x) where trans='reverse'

fun scale_x_reverse(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_x_sqrt

Continuous position scales (x) where trans='sqrt'

fun scale_x_sqrt(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_y_continuous

Continuous scale for y axis

fun scale_y_continuous(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null, trans: String? = null): Scale

scale_y_datetime

Continuous position scale (y).

fun scale_y_datetime(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: Pair<Any?, Any?>? = null, expand: List<Number>? = null, naValue: Any? = null): Scale

scale_y_discrete

Discrete scale for y axis

fun scale_y_discrete(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, expand: List<Number>? = null, naValue: Number? = null, reverse: Boolean? = null): Scale

scale_y_discrete_reversed

Reversed discrete scale for y axis

fun scale_y_discrete_reversed(name: String? = null, breaks: List<Any>? = null, labels: List<String>? = null, limits: List<Any>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_y_log10

Continuous position scale (y) where trans='log10'

fun scale_y_log10(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_y_reverse

Continuous position scales (y) where trans='reverse'

fun scale_y_reverse(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

scale_y_sqrt

Continuous position scales (y) where trans='sqrt'

fun scale_y_sqrt(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null): Scale

xlim

Specifies data range for x axis. Set limits if you want values to be consistent across multiple plots. Setting limits will remove data outside of the limits.

fun xlim(limits: Any): Feature

ylim

Specifies data range for y axis. Set limits if you want values to be consistent across multiple plots. Setting limits will remove data outside of the limits.

fun ylim(limits: Any): Feature