plot-api / jetbrains.letsPlot

Package jetbrains.letsPlot

Types

Figure

interface Figure

FrontendContext

interface FrontendContext

Geom

Geom options to pass as a value of geom parameter of layer functions like: lets_plot() + stat_density(..., geom = Pos.point(), ... )

object Geom

GGBunch

class GGBunch : Figure

LetsPlot

object LetsPlot

MappingMeta

class MappingMeta

Pos

object Pos

Stat

object Stat

theme

Use theme() to modify individual components of a theme, allowing you to control the appearance of all non-data components of the plot.

class theme : OptionsMap

Properties

ENV_HTML_ISOLATED_FRAME

const val ENV_HTML_ISOLATED_FRAME: String

Functions

as_discrete

Marks a numeric variable as categorical. The plot will use a discrete scale for the aesthetic mapping. It is similar to the factor() function from R but works differently - there is no data transformation.

fun as_discrete(variable: String, label: String? = null): MappingMeta

coord_cartesian

The Cartesian coordinate system is the most familiar, and common, type of coordinate system. Setting limits on the coordinate system will zoom the plot (like you're looking at it with a magnifying glass), and will not change the underlying data like setting limits on a scale will.

fun coord_cartesian(xlim: Pair<Number?, Number?>? = null, ylim: Pair<Number?, Number?>? = null): OptionsMap

coord_fixed

A fixed scale coordinate system forces a specified ratio between the physical representation of data units on the axes.

fun coord_fixed(ratio: Double? = null, xlim: Pair<Number?, Number?>? = null, ylim: Pair<Number?, Number?>? = null): OptionsMap

coord_map

Projects a portion of the earth, which is approximately spherical, onto a flat 2D plane. Map projections do not, in general, preserve straight lines, so this requires considerable computation.

fun coord_map(xlim: Pair<Number?, Number?>? = null, ylim: Pair<Number?, Number?>? = null): OptionsMap

gggrid

Arrange plots in cells of a regular grid.

fun gggrid(plots: Iterable<Plot>, ncol: Int, cellWidth: Int, cellHeight: Int, hGap: Int = 0, vGap: Int = 50, fit: Boolean = false): GGBunch

ggplot

fun ggplot(data: Map<*, *>? = null, mapping: GenericAesMapping.() -> Unit = {}): Plot

ggsize

Specifies overall size of plot.

fun ggsize(width: Int, height: Int): OptionsMap

lets_plot

fun lets_plot(data: Map<*, *>? = null, mapping: GenericAesMapping.() -> Unit = {}): Plot

position_dodge

fun position_dodge(width: Number? = null): PosOptions

position_jitter

fun position_jitter(width: Number? = null, height: Number? = null): PosOptions

position_jitterdodge

fun position_jitterdodge(dodgeWidth: Number? = null, jitterWidth: Number? = null, jitterHeight: Number? = null): PosOptions

position_nudge

fun position_nudge(x: Number? = null, y: Number? = null): PosOptions