plot_exposures_by_annotation: Plots signature weights for each sample gridded by single...

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

Plots signature weights for each sample gridded by single annotation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_exposures_by_annotation(
  result,
  annotation,
  proportional = TRUE,
  label_samples = FALSE,
  sort_samples = "numerical",
  by_group = TRUE,
  num_samples = FALSE,
  no_legend = FALSE,
  thresh_zero = FALSE,
  plotly = FALSE
)

Arguments

result

S4 Result Object

annotation

Annotation to use for facet_wrap

proportional

Whether weights are normalized to sum to 1 or not

label_samples

Whether to display sample names or not

sort_samples

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

by_group

Plot subplots by annotation or by signature

num_samples

Number of sorted samples to plot

no_legend

Remove legend from the plot

thresh_zero

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

plotly

add plotly layer for plot interaction

Value

Generates plot no return

Examples

1
2
3
result <- readRDS(system.file("testdata", "res_annot.rds",
package = "BAGEL"))
plot_exposures_by_annotation(result, "Tumor_Subtypes")

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