Description Usage Arguments Value
View source: R/plot_error_bar_fns.R
Convert spectra to signatures and then plot mean with "error" bars
1 2 3 4 5 6 7 | PlotSpectraAsSigsWithUncertainty(
spectra,
mean.weighted = TRUE,
conf.int = 0.95,
num.of.bootstrap.replicates = 10^4,
title = "Mean.as.signature"
)
|
spectra |
An |
mean.weighted |
Logical. Whether to weigh the samples according to the number of mutations in them to calculate the weighted mean as the consensus signature. Default is TRUE. If FALSE, then arithmetic mean will be calculated. |
conf.int |
A number specifying the required confidence interval. The error bars will be plotted as bootstrap confidence interval for the mean. If NULL, then use the maximum and minimum value of the spectra to plot error bars. |
num.of.bootstrap.replicates |
The number of bootstrap replicates to use. Default is 10000. |
title |
The name of the output signature. |
The mean of the spectra as a signature, the constituent spectra as signatures, and the y positions of the arrowheads.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.