Learn R Programming

ccml (version 1.4.0)

plotCompareCW: Plot of original consensus weights vs. normalized consensus weights grouping by the number of co-appeared percent of clustering(non-missing).

Description

Plot of original consensus weights vs. normalized consensus weights grouping by the number of co-appeared percent of clustering(non-missing).

Usage

plotCompareCW(title, label, ncw, plot = NULL)

Value

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 .

Arguments

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 label.

plot

character value. NULL(default) - print to screen, 'pdf', 'png', 'pngBMP' for bitmap png, helpful for large datasets, or 'pdf'.

Examples

Run this code

# load data
data(example_data)
label=example_data

# if plot is not NULL, results will be saved in "result_output" directory
title="result_output"

# \donttest{
ncw<-callNCW(title=title,label=label,stability=TRUE)
plotCompareCW(title=title,label=label,ncw=ncw)
# }

Run the code above in your browser using DataLab