plotContexts | R Documentation |
Plot contexts
plotContexts(
x,
mut.type = "auto",
group = "group1",
y.axis.var.scale = T,
horizontal.group.labels = F,
force.group.labels = F
)
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 |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.