Stat

object Stat

Stat options to pass as a value of stat 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) +
geomArea(stat = Stat.density()) { x="x" }

Types

Link copied to clipboard
class bin(val bins: Int? = null, val binWidth: Number? = null, val center: Number? = null, val boundary: Number? = null, val threshold: Number? = null, val mapping: BinStatMapping.() -> Unit = {}) : StatOptions, BinStatParameters
Link copied to clipboard
class bin2D(val bins: <Error class: unknown class><Int, Int>? = null, val binWidth: <Error class: unknown class><Number?, Number?>? = null, val drop: Boolean? = null, val mapping: Bin2dStatMapping.() -> Unit = {}) : StatOptions, Bin2dStatParameters
Link copied to clipboard
class boxplot(val varWidth: Boolean? = null, val coef: Number? = null, val mapping: BoxplotStatMapping.() -> Unit = {}) : StatOptions, BoxplotStatParameters
Link copied to clipboard
class boxplotOutlier(val coef: Number? = null, val mapping: BoxplotStatMapping.() -> Unit = {}) : StatOptions, BoxplotOutlierStatParameters
Link copied to clipboard
class contour(val bins: Int? = null, val binWidth: Number? = null, val mapping: ContourStatMapping.() -> Unit = {}) : StatOptions, ContourStatParameters
Link copied to clipboard
class contourFilled(val bins: Int? = null, val binWidth: Number? = null, val mapping: ContourStatMapping.() -> Unit = {}) : StatOptions, ContourStatParameters
Link copied to clipboard
class count(val mapping: CountStatMapping.() -> Unit = {}) : StatOptions
Link copied to clipboard
class count2d(val mapping: Count2dStatMapping.() -> Unit = {}) : StatOptions
Link copied to clipboard
class density(val bw: Any? = null, val kernel: String? = null, val n: Int? = null, val trim: Boolean? = null, val adjust: Number? = null, val fullScanMax: Int? = null, val quantiles: List<Number>? = null, val mapping: DensityStatMapping.() -> Unit = {}) : StatOptions, DensityStatParameters
Link copied to clipboard
class density2D(val bw: Any? = null, val kernel: String? = null, val n: Int? = null, val adjust: Number? = null, val contour: Boolean? = null, val bins: Int? = null, val binWidth: Number? = null, val mapping: Density2dStatMapping.() -> Unit = {}) : StatOptions, Density2dStatParameters
Link copied to clipboard
class density2DFilled(val bw: Any? = null, val kernel: String? = null, val n: Int? = null, val adjust: Number? = null, val contour: Boolean? = null, val bins: Int? = null, val binWidth: Number? = null, val mapping: Density2dStatMapping.() -> Unit = {}) : StatOptions, Density2dStatParameters
Link copied to clipboard
class densityRidges(val tailsCutoff: Number? = null, val quantiles: List<Number>? = null, val bw: Any? = null, val kernel: String? = null, val n: Int? = null, val trim: Boolean? = null, val adjust: Number? = null, val fullScanMax: Int? = null, val mapping: DensityRidgesStatMapping.() -> Unit = {}) : StatOptions, DensityRidgesStatParameters
Link copied to clipboard
class dotplot(val bins: Int? = null, val binWidth: Number? = null, val center: Number? = null, val boundary: Number? = null, val method: String? = null, val mapping: DotplotStatMapping.() -> Unit = {}) : StatOptions, DotplotStatParameters
Link copied to clipboard
class ecdf(val n: Int? = null, val pad: Boolean? = true, val mapping: ECDFStatMapping.() -> Unit = {}) : StatOptions, ECDFStatParameters
Link copied to clipboard
class qq(val distribution: String? = null, val dParams: List<Number>? = null, val mapping: QQStatMapping.() -> Unit = {}) : StatOptions, QQStatParameters
Link copied to clipboard
class qq2(val mapping: QQ2StatMapping.() -> Unit = {}) : StatOptions
Link copied to clipboard
class qq2Line(val quantiles: <Error class: unknown class><Number, Number>? = null, val mapping: QQ2StatMapping.() -> Unit = {}) : StatOptions, QQ2LineStatParameters
Link copied to clipboard
class qqLine(val distribution: String? = null, val dParams: List<Number>? = null, val quantiles: <Error class: unknown class><Number, Number>? = null, val mapping: QQStatMapping.() -> Unit = {}) : StatOptions, QQLineStatParameters
Link copied to clipboard
class smooth(val method: String? = null, val n: Int? = null, val level: Number? = null, val se: Boolean? = null, val span: Number? = null, val deg: Int? = null, val seed: Long? = null, val maxN: Int? = null, val mapping: SmoothStatMapping.() -> Unit = {}) : StatOptions, SmoothStatParameters
Link copied to clipboard
class sum(val mapping: SumStatMapping.() -> Unit = {}) : StatOptions
Link copied to clipboard
class summary(val fn: String? = null, val fnMin: String? = null, val fnMax: String? = null, val quantiles: List<Number>? = null, val mapping: SummaryStatMapping.() -> Unit = {}) : StatOptions, SummaryStatParameters
Link copied to clipboard
class summaryBin(val fn: String? = null, val fnMin: String? = null, val fnMax: String? = null, val quantiles: List<Number>? = null, val bins: Int? = null, val binWidth: Number? = null, val center: Number? = null, val boundary: Number? = null, val threshold: Number? = null, val mapping: SummaryBinStatMapping.() -> Unit = {}) : StatOptions, SummaryBinStatParameters
Link copied to clipboard
class yDensity(val scale: String? = null, val tailsCutoff: Number? = null, val bw: Any? = null, val kernel: String? = null, val n: Int? = null, val trim: Boolean? = null, val adjust: Number? = null, val fullScanMax: Int? = null, val quantiles: List<Number>? = null, val mapping: YDensityStatMapping.() -> Unit = {}) : StatOptions, YDensityStatParameters
Link copied to clipboard
class yDotplot(val bins: Int? = null, val binWidth: Number? = null, val center: Number? = null, val boundary: Number? = null, val method: String? = null, val mapping: YDotplotStatMapping.() -> Unit = {}) : StatOptions, YDotplotStatParameters

Properties

Link copied to clipboard
val identity: StatOptions