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
Tiles: tiles
, rectangles
, raster plot
Examples:
Discrete
bar
, pie
, lollipop
, boxplot
, count
/sum
Learn more: Working with Categorical Variables and the asDiscrete() Function
Examples:
Contours
Examples:
Visualization of Distribution
histogram
, density
, dotplot
, y-dotplot
, violin
, ridgeline
, frequency polygon
Examples:
Stats
statECDF()
, statSummary()
, statSummaryBin()
Examples:
Function
Examples:
Visualization of Errors
crossbar
, errorbar
, linerange
, pointrange
Examples:
Smoothing
Examples:
Bivariate Distribution
2d bins
, 2d density
, filled 2d density
Examples:
Marginal Plots
See also: Joint Plot, Residual Plot.
Examples:
Time Series
scaleXDatetime()
, scaleYDatetime()
, scaleXTime()
, scaleYTime()
Examples:
Images
Examples:
Coordinate Systems
coordCartesian()
, coordFixed()
, coordPolar()
, coordFlip()
, coordMap()
Examples:
Legends and Guides
guideLegend()
, guideColorbar()
, guides()
, layerKey()
Examples: