hist

fun hist(data: DoubleArray, k: Int = 10, prob: Boolean = false, color: Color = Color.BLUE): Canvas(source)

Histogram plot.

Return

the plot canvas.

Parameters

data

a sample set.

k

the number of bins.

prob

if true, probability scale; otherwise frequency scale.

color

the color of bars.


fun hist(data: DoubleArray, breaks: DoubleArray, prob: Boolean = false, color: Color = Color.BLUE): Canvas(source)

Histogram plot with custom breaks.

Return

the plot canvas.

Parameters

data

a sample set.

breaks

an array of size k+1 giving the breakpoints between cells.

prob

if true, probability scale; otherwise frequency scale.

color

the color of bars.