bin

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

Constructors

Link copied to clipboard
constructor(bins: Int? = null, binWidth: Number? = null, center: Number? = null, boundary: Number? = null, threshold: Number? = null, mapping: BinStatMapping.() -> Unit = {})

Properties

Link copied to clipboard
open override val bins: Int? = null

Number of bins. Overridden by binWidth.

Link copied to clipboard
open override val binWidth: Number? = null

The width of the bins. The default is to use bin widths that cover the entire range of the data. You should always override this value, exploring multiple widths to find the best to illustrate the stories in your data.

Link copied to clipboard
open override val boundary: Number? = null

Specifies x-value to align bin boundary (i.e., point between bins) to.

Link copied to clipboard
open override val center: Number? = null

Specifies x-value to align bin centers to.

Link copied to clipboard
val kind: StatKind
Link copied to clipboard
val mapping: Options
Link copied to clipboard
open override val parameters: Options
Link copied to clipboard
open override val threshold: Number? = null

Only bins with a ..count.. greater than the threshold will be displayed. This is useful for free scales in facets - use threshold=0 to make the plot take up the entire panel space.