Geom

object Geom

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

val n = 100
val rand = java.util.Random(42)
val data = mapOf("x" to List(n) { rand.nextGaussian() })
letsPlot(data) +
statDensity(geom = Geom.area()) { x="x" }

Types

Link copied to clipboard
class abline(val slope: Number? = null, val intercept: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: ABLineMapping.() -> Unit = {}) : GeomOptions, ABLineAesthetics, WithColorOption
Link copied to clipboard
class area(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: AreaMapping.() -> Unit = {}) : GeomOptions, AreaAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class bar(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val width: Number? = null, val size: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: BarMapping.() -> Unit = {}) : GeomOptions, BarAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class boxplot(val x: Number? = null, val y: Number? = null, val lower: Number? = null, val middle: Number? = null, val upper: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val fatten: Number? = null, val whiskerWidth: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val size: Number? = null, val linetype: Any? = null, val shape: Any? = null, val angle: Number? = null, val width: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: BoxplotMapping.() -> Unit = {}) : GeomOptions, BoxplotAesthetics, BoxplotParameters, WithColorOption, WithFillOption
Link copied to clipboard
class crossbar(val x: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val y: Number? = null, val xmin: Number? = null, val xmax: Number? = null, val width: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: CrossBarMapping.() -> Unit = {}) : GeomOptions, CrossBarAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class errorbar(val x: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val width: Number? = null, val y: Number? = null, val xmin: Number? = null, val xmax: Number? = null, val height: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: ErrorBarMapping.() -> Unit = {}) : GeomOptions, ErrorBarAesthetics, WithColorOption
Link copied to clipboard
class histogram(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val size: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: HistogramMapping.() -> Unit = {}) : GeomOptions, HistogramAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class hline(val yintercept: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: HLineMapping.() -> Unit = {}) : GeomOptions, HLineAesthetics, WithColorOption
Link copied to clipboard
class label(val x: Number? = null, val y: Number? = null, val label: String? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val size: Number? = null, val family: String? = null, val fontface: String? = null, val hjust: Any? = null, val vjust: Any? = null, val angle: Number? = null, val lineheight: Number? = null, val labelFormat: String? = null, val naText: String? = null, val nudgeX: Number? = null, val nudgeY: Number? = null, val labelPadding: Number? = null, val labelR: Number? = null, val labelSize: Number? = null, val alphaStroke: Boolean? = null, val sizeUnit: String? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: LabelMapping.() -> Unit = {}) : GeomOptions, LabelAesthetics, LabelParameters, WithSizeUnitOption, WithColorOption, WithFillOption
Link copied to clipboard
class line(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: LineMapping.() -> Unit = {}) : GeomOptions, LineAesthetics, WithColorOption
Link copied to clipboard
class linerange(val x: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val y: Number? = null, val xmin: Number? = null, val xmax: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: LineRangeMapping.() -> Unit = {}) : GeomOptions, LineRangeAesthetics, WithColorOption
Link copied to clipboard
class lollipop(val x: Number? = null, val y: Number? = null, val size: Number? = null, val stroke: Number? = null, val linewidth: Number? = null, val color: Any? = null, val fill: Any? = null, val alpha: Number? = null, val shape: Any? = null, val linetype: Any? = null, val fatten: Number? = null, val slope: Number? = null, val intercept: Number? = null, val dir: String? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: LollipopMapping.() -> Unit = {}) : GeomOptions, LollipopAesthetics, LollipopParameters, WithColorOption, WithFillOption
Link copied to clipboard
class map(val x: Number? = null, val y: Number? = null, val size: Number? = null, val linetype: Any? = null, val color: Any? = null, val fill: Any? = null, val alpha: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: PolygonMapping.() -> Unit = {}) : GeomOptions, PolygonAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class path(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: PathMapping.() -> Unit = {}) : GeomOptions, PathAesthetics, WithColorOption
Link copied to clipboard
class pie(val x: Number? = null, val y: Number? = null, val slice: Number? = null, val explode: Number? = null, val size: Number? = null, val fill: Any? = null, val alpha: Number? = null, val color: Any? = null, val stroke: Number? = null, val hole: Number? = null, val strokeSide: String? = null, val spacerWidth: Number? = null, val spacerColor: Any? = null, val sizeUnit: String? = null, val fillBy: String? = null, val colorBy: String? = null, val mapping: PieMapping.() -> Unit = {}) : GeomOptions, PieAesthetics, PieParameters, WithSizeUnitOption, WithFillOption, WithColorOption
Link copied to clipboard
class point(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val shape: Any? = null, val size: Number? = null, val stroke: Number? = null, val angle: Number? = null, val sizeUnit: String? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: PointMapping.() -> Unit = {}) : GeomOptions, PointAesthetics, WithSizeUnitOption, WithColorOption, WithFillOption
Link copied to clipboard
class pointrange(val x: Number? = null, val y: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val xmin: Number? = null, val xmax: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val linetype: Any? = null, val shape: Any? = null, val size: Number? = null, val stroke: Number? = null, val linewidth: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: PointRangeMapping.() -> Unit = {}) : GeomOptions, PointRangeAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class polygon(val x: Number? = null, val y: Number? = null, val size: Number? = null, val linetype: Any? = null, val color: Any? = null, val fill: Any? = null, val alpha: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: PolygonMapping.() -> Unit = {}) : GeomOptions, PolygonAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class qq(val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val shape: Any? = null, val size: Number? = null, val stroke: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: QQMapping.() -> Unit = {}) : GeomOptions, QQAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class qqLine(val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: QQLineMapping.() -> Unit = {}) : GeomOptions, QQLineAesthetics, WithColorOption
Link copied to clipboard
class raster(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val fill: Any? = null, val fillBy: String? = null, val mapping: RasterMapping.() -> Unit = {}) : GeomOptions, RasterAesthetics, WithFillOption
Link copied to clipboard
class rect(val xmin: Number? = null, val xmax: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val fill: Any? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: RectMapping.() -> Unit = {}) : GeomOptions, RectAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class ribbon(val x: Number? = null, val ymin: Number? = null, val ymax: Number? = null, val y: Number? = null, val xmin: Number? = null, val xmax: Number? = null, val size: Number? = null, val linetype: Any? = null, val color: Any? = null, val fill: Any? = null, val alpha: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: RibbonMapping.() -> Unit = {}) : GeomOptions, RibbonAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class segment(val x: Number? = null, val y: Number? = null, val xend: Number? = null, val yend: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val sizeStart: Number? = null, val sizeEnd: Number? = null, val strokeStart: Number? = null, val strokeEnd: Number? = null, val colorBy: String? = null, val mapping: SegmentMapping.() -> Unit = {}) : GeomOptions, SegmentAesthetics, WithColorOption
Link copied to clipboard
class step(val x: Number? = null, val y: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: LineMapping.() -> Unit = {}) : GeomOptions, LineAesthetics, WithColorOption
Link copied to clipboard
class text(val x: Number? = null, val y: Number? = null, val label: String? = null, val alpha: Number? = null, val color: Any? = null, val size: Number? = null, val family: String? = null, val fontface: String? = null, val hjust: Any? = null, val vjust: Any? = null, val angle: Number? = null, val lineheight: Number? = null, val labelFormat: String? = null, val naText: String? = null, val nudgeX: Number? = null, val nudgeY: Number? = null, val sizeUnit: String? = null, val colorBy: String? = null, val mapping: TextMapping.() -> Unit = {}) : GeomOptions, TextAesthetics, TextParameters, WithSizeUnitOption, WithColorOption
Link copied to clipboard
class tile(val x: Number? = null, val y: Number? = null, val width: Number? = null, val height: Number? = null, val alpha: Number? = null, val color: Any? = null, val fill: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val fillBy: String? = null, val mapping: TileMapping.() -> Unit = {}) : GeomOptions, TileAesthetics, WithColorOption, WithFillOption
Link copied to clipboard
class vline(val xintercept: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val colorBy: String? = null, val mapping: VLineMapping.() -> Unit = {}) : GeomOptions, VLineAesthetics, WithColorOption