class CorrPlot
Correlation plot builder.
The terminal 'build()' method will create a fully configured 'Plot' (i.e. Figure) object.
data
- Dataframe to compute correlations on.
showLegend
- Whether to show a legend.
flip
- Whether to flip the y axis.
threshold
- Minimal correlation abs value to be included in result. Must be in interval 0.0,1.0
adjustSize
- A scaler to adjust the plot size which was computed by CorrPlot
automatically.
<init> |
CorrPlot(data: Map<*, *>, title: String? = null, showLegend: Boolean = true, flip: Boolean = true, threshold: Double = DEF_THRESHOLD, adjustSize: Double = 1.0) |
build |
fun build(): Plot |
labels |
Add labels layer to corr plot. fun labels(type: String? = null, diag: Boolean? = null, mapSize: Boolean? = null, color: String? = null): CorrPlot |
paletteBrBG |
Use Brewer 'BrBG' colors fun paletteBrBG(): CorrPlot |
paletteGradient |
Use gradient colors fun paletteGradient(low: String, mid: String, high: String): CorrPlot |
palettePiYG |
Use Brewer 'PiYG' colors fun palettePiYG(): CorrPlot |
palettePRGn |
Use Brewer 'PRGn' colors fun palettePRGn(): CorrPlot |
palettePuOr |
Use Brewer 'PuOr' colors fun palettePuOr(): CorrPlot |
paletteRdBu |
Use Brewer 'RdBu' colors fun paletteRdBu(): CorrPlot |
paletteRdGy |
Use Brewer 'RdGy' colors fun paletteRdGy(): CorrPlot |
paletteRdYlBu |
Use Brewer 'RdYlBu' colors fun paletteRdYlBu(): CorrPlot |
paletteRdYlGn |
Use Brewer 'RdYlGn' colors fun paletteRdYlGn(): CorrPlot |
paletteSpectral |
Use Brewer 'Spectral' colors fun paletteSpectral(): CorrPlot |
points |
Add points layer to corr plot. fun points(type: String? = null, diag: Boolean? = null): CorrPlot |
tiles |
Add tiles layer to corr plot. fun tiles(type: String? = null, diag: Boolean? = null): CorrPlot |