plotContexts: Plot contexts

View source: R/plotContexts.R

plotContextsR Documentation

Plot contexts

Description

Plot contexts

Usage

plotContexts(
  x,
  mut.type = "auto",
  group = "group1",
  y.axis.var.scale = T,
  horizontal.group.labels = F,
  force.group.labels = F
)

Arguments

x

A matrix or vector of context counts

mut.type

A string specifying the mutation type Can be 'snv', 'dbs', 'indel'

group

A vector indicating the which group each sample belongs to. If provided, a plot will be produced for each group. If unspecified, the function will assume that all rows of 'x' belong to the same group. If NULL, all rows will be considered as separate samples

y.axis.var.scale

If TRUE, variable y-axis scale for each sample group will be used

horizontal.group.labels

If TRUE, horizontal text for the sample group labels will be used

force.group.labels

If TRUE, sample group label will be shown even if there is only one group

Value

A ggplot2 object


UMCUGenetics/mutSigExtractor documentation built on Aug. 30, 2024, 2:12 p.m.