PlotSpectraAsSigsWithUncertainty: Convert spectra to signatures and then plot mean with "error"...

Description Usage Arguments Value

View source: R/plot_error_bar_fns.R

Description

Convert spectra to signatures and then plot mean with "error" bars

Usage

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"
)

Arguments

spectra

An ICAMS spectrum catalog. Convert each spectrum to a signature and then compute the mean.

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.

Value

The mean of the spectra as a signature, the constituent spectra as signatures, and the y positions of the arrowheads.


steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.