View source: R/plotCompareCW.R
plotCompareCW | R Documentation |
Plot of original consensus weights vs. normalized consensus weights grouping by the number of co-appeared percent of clustering(non-missing).
plotCompareCW(title, label, ncw, plot = NULL)
title |
A character value for output directory. |
label |
A matrix or data frame of input labels, columns=different clustering results and rows are samples. |
ncw |
A matrix of normalized consensus weights with sample-by-sample as the order of sample(rows) in |
plot |
character value. NULL(default) - print to screen, 'pdf', 'png', 'pngBMP' for bitmap png, helpful for large datasets, or 'pdf'. |
A ggplot point in PDF format with x-axis: original consensus weights; y-axis: normalized consensus weights; color: percent of co-appeared of clustering; size: number of duplicates sample .
# load data
data(example_data)
label=example_data
# if plot is not NULL, results will be saved in "result_output" directory
title="result_output"
ncw<-callNCW(title=title,label=label,stability=TRUE)
plotCompareCW(title=title,label=label,ncw=ncw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.