Package-level declarations

Examples

More examples you can find here.

Types

Link copied to clipboard
interface Figure
Link copied to clipboard
object Geom

Geom options to pass as a value of geom parameter of layer functions like:

Link copied to clipboard
class GGBunch : Figure

Collection of plots created by ggplot function. Use method addPlot() to add plot to 'bunch'. Each plot can have arbitrary location and size. Use show() to draw all plots in bunch.

Link copied to clipboard
object LetsPlot
Link copied to clipboard
object Stat

Stat options to pass as a value of stat parameter of layer functions like:

Functions

Link copied to clipboard
fun asDiscrete(variable: String, label: String? = null, orderBy: String? = null, order: Int? = null, levels: List<Any>? = null): MappingMeta

The function converts a column to a discrete scale and allows you to specify the order of its values. It is similar to the factor() function from R but works differently - there is no data transformation.

Link copied to clipboard
fun gggrid(plots: Iterable<Figure?>, ncol: Int? = null, widths: List<Number>? = null, heights: List<Number>? = null, hspace: Number? = null, vspace: Number? = null, fit: Boolean = true, align: Boolean = false, sharex: Any? = null, sharey: Any? = null): SubPlotsFigure

Combines several plots on one figure, organized in a regular grid.

Link copied to clipboard
fun ggmarginal(sides: String, size: Any? = null, layer: Feature): Feature

Converts given geometry layer to a marginal layer. You can add one or more marginal layers to a plot to create a marginal plot.

Link copied to clipboard
fun ggplot(data: Map<*, *>? = null, mapping: GenericAesMapping.() -> Unit = {}): Plot
Link copied to clipboard
fun ggsize(width: Number, height: Number): OptionsMap

Specifies overall size of plot.

Link copied to clipboard
fun letsPlot(data: Map<*, *>? = null, mapping: GenericAesMapping.() -> Unit = {}): Plot