labels

fun labels(type: String? = null, diag: Boolean? = null, mapSize: Boolean? = null, color: String? = null, haloWidth: Number? = null, haloColor: String? = null): CorrPlot

Adds labels layer to corr plot.

Parameters

type

Type of the matrix: "upper", "lower" or "full". Default - contextual.

diag

Whether to fill the main diagonal with values or not. Default - contextual.

mapSize

If true, then absolute value of correlation is mapped to text size. If false - the text size is constant. Default - contextual.

color

Set text color. Default - contextual.

haloWidth

Width of the halo (outline) around the labels. A halo is rendered only when haloWidth > 0.

haloColor

Color of the halo around the labels. Setting haloColor alone has no visible effect unless haloWidth > 0. When omitted, the panel background color is used.