plot_exposures: Plots signature weights for each sample

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

Plots signature weights for each sample

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_exposures(
  result,
  proportional = TRUE,
  label_samples = FALSE,
  samples_plotted = colnames(result@exposures),
  sort_samples = "numerical",
  num_samples = length(colnames(result@exposures)),
  thresh_zero = FALSE,
  no_legend = FALSE,
  plotly = FALSE
)

Arguments

result

S4 Result Object

proportional

Whether weights are normalized to sum to 1 or not

label_samples

Whether to display sample names or not

samples_plotted

A subset of samples to plot

sort_samples

Defaults to numerical, may be total 'counts', or a specific signatures name (e.g. 'Signature1)

num_samples

Number of sorted samples to plot

thresh_zero

Max level to zero out for better plotting when sorting by multiple signatures

no_legend

Don't plot legend

plotly

add plotly layer for plot interaction

Value

Generates plot no return

Examples

1
2
result <- readRDS(system.file("testdata", "res.rds", package = "BAGEL"))
plot_exposures(result)

campbio/BAGEL documentation built on Oct. 6, 2020, 3:59 a.m.