Lets-Plot for Kotlin 4.9.0 Help

Charts

Data

Every layer may have some data associated with it. The "data" refers to a table of data where each row contains an observation and each column represents a variable that describes some property of each observation.

Data in this format is sometimes referred to as tidy data, flat data, primary data, atomic data, and unit record data.

You can pass tidy data to Lets-Plot in form of a Kotlin Map.

Basic Building Blocks

Points: points, jittered points

Lines: line, path, diagonal line, horizontal line, vertical line, segment, curve, spoke, step-function

Areas: area, band, ribbon

Polygons: polygon, map

Tiles: tiles, rectangles, raster plot

Text: text, label

Examples:

Discrete

bar, pie, lollipop, boxplot, count/sum

Learn more: Working with Categorical Variables and the asDiscrete() Function

Examples:

Contours

contours, filled contours

Examples:

Visualization of Distribution

histogram, density, dotplot, y-dotplot, violin, ridgeline, frequency polygon

Examples:

Stats

statECDF(), statSummary(), statSummaryBin()

Examples:

Function

function

Examples:

Visualization of Errors

crossbar, errorbar, linerange, pointrange

Examples:

Smoothing

smoothing line

Examples:

Bivariate Distribution

2d bins, 2d density, filled 2d density

Examples:

Marginal Plots

ggmarginal

See also: Joint Plot, Residual Plot.

Examples:

Time Series

scaleXDatetime(), scaleYDatetime(), scaleXTime(), scaleYTime()

Examples:

Images

geomImshow()

Examples:

Coordinate Systems

coordCartesian(), coordFixed(), coordPolar(), coordFlip(), coordMap()

Examples:

Last modified: 20 August 2024