pac_convergence: PAC Convergence Plot

View source: R/PAC.R

pac_convergenceR Documentation

PAC Convergence Plot

Description

Plot PAC across iterations for a set of k to assess convergence.

Usage

pac_convergence(pac_res, k_plot)

Arguments

pac_res

The data.frame output by consensus_cluster.

k_plot

A vector with values of k to plot.

Value

A ggplot2 object with the convergence plot. Convergence has been reached when the lines flatten out across k_plot values. out across

Examples

pac.res <- consensus_cluster(iris[, 1:4], k_max = 20)
pac_convergence(pac.res, k_plot = c(3, 5, 7, 9))

Core-Bioinformatics/ClustAssess documentation built on Nov. 14, 2024, 6:33 p.m.