PlotTracking: The PlotTracking function

Description Usage Arguments Details Examples

Description

This graphic shows the cluster assignment of items (columns) for each k (rows) by color. The colors correspond to the colors of the consensus matrix class asssignments. This function only produces the plot if the results were produced for more than one value of K, so that the comparison and tracking can be done.

Usage

1
2
PlotTracking(results, showSamplesNames = TRUE, plotSave = c("no", "pdf",
  "bmp", "png", "ps"), pathOutput = "")

Arguments

results

output from consensusClustering function.

showSamplesNames

logical indicating if the plot should display sample names or not.

plotSave

character string indicating the format the plot to be saved in a file. Default is "no", the plot is not saved, but printed to the screen.

pathOutput

directory for saving the plot if plotSave == TRUE, defaults to current working directory

Details

This graphic shows the cluster assignment of items (columns) for each k (rows). The color asssignments corresponds to the consensus matrix class. This plot provides a view of item cluster membership across different k and enables users to track the history of clusters relative to earlier clusters. For items that change clusters often (changing colors within a column) are indicative of unstable membership and thus unstable/unreliable clusters where as items that do not frequently change colors shows a strong membership and stable cluster asssignment.

Examples

1
2
3
mat <- matrix(rnorm(10*6), 10, 6)
result <- consensusClustering(mat, nIters = 5, plotTracking = FALSE)
PlotTracking(result)

mpru/ConsensusClustering documentation built on May 9, 2019, 5:54 a.m.