pac_landscape {ClustAssess}R Documentation

PAC Landscape Plot

Description

Plot final PAC values across range of k to find optimal number of clusters.

Usage

pac_landscape(pac_res, n_shade = max(pac_res$iteration)/5)

Arguments

pac_res

The data.frame output by consensus_cluster.

n_shade

The number of iterations to shade to show the variability of PAC across the last n_shade iterations.

Value

A ggplot2 object with the final PAC vs k plot.

Examples

pac.res = consensus_cluster(iris[,1:4], k_max=20)
pac_landscape(pac.res)

[Package ClustAssess version 0.1.1 Index]