plot_activities: Plot the activities of signature(s)

Description Usage Arguments Value

View source: R/plot_activities.R

Description

Plot the activities of signature(s)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_activities(
  x,
  title = NULL,
  xlabel = "Samples",
  ylabel = "Mutation Counts",
  ylimits = NULL,
  usePercent = FALSE,
  countsAsProportions = FALSE,
  showSampleNames = FALSE,
  orderByMutationCount = TRUE,
  facetGroupVariable = NULL
)

Arguments

x

A TidySig dataframe/tibble

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)

usePercent

Use percent scales (rather than counts)

countsAsProportions

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

showSampleNames

display sample names underneath the plot

orderByMutationCount

sort the data by descending number of mutations

facetGroupVariable

a variable to facet the data on (e.g., an exposure condition).

Value

a ggplot2 object


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