plot_SBS96_signature: Plot an SBS96 signature or series of signatures

Description Usage Arguments Value

View source: R/plot_SBS96_signature.R

Description

Plot an SBS96 signature or series of signatures

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_SBS96_signature(
  x,
  label = "Signature",
  title = NULL,
  xlabel = "Base Context",
  ylabel = "Count",
  ylimits = NULL,
  usePercent = FALSE,
  countsAsProportions = FALSE,
  facetCondition = NULL
)

Arguments

x

A TidySig dataframe/tibble

label

The right-side (i.e., facet) label. Usually "Signature" or "Sample" or a sample ID.

title

A title for the plot

xlabel

An x-axis label

ylabel

A y-axis label

ylimits

Use custom ylimits (useful for normalizing the views of multiple signatures). Takes a numeric vector length-two OR a string "smart" to indicate that consistent y-limits should be automatically fit from the values in x.

usePercent

Use percent scales (rather than counts)

countsAsProportions

Convert the input data (in counts) to per-signature proportions

facetCondition

a condition to generate facet columns.

Value

a ggplot2 object


edawson/tidysig documentation built on May 2, 2020, 5:33 a.m.