plot_192_profile: Plot 192 trinucleotide profile

Description Usage Arguments Value See Also Examples

View source: R/plot_192_profile.R

Description

Plot relative contribution of 192 trinucleotides

Usage

1

Arguments

mut_matrix

192 trinucleotide profile matrix

colors

6 value color vector

ymax

Y axis maximum value, default = 0.015

Value

192 trinucleotide profile plot

See Also

mut_matrix_stranded, extract_signatures

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## See the 'mut_matrix_stranded()' example for how we obtained the
## mutation matrix with transcriptional strand information:
mut_mat_s <- readRDS(system.file("states/mut_mat_s_data.rds",
                                    package="MutationalPatterns"))

## Extract the signatures.
## This is a computational intensive task, so we load a precomputed
## version instead.
# nmf_res_strand <- extract_signatures(mut_mat_s, rank = 2)
nmf_res_strand <- readRDS(system.file("states/nmf_res_strand_data.rds",
                                    package="MutationalPatterns"))

## Optionally, provide signature names
colnames(nmf_res_strand$signatures) <- c("Signature A", "Signature B")

## Generate the plot
plot_192_profile(nmf_res_strand$signatures)

MutationalPatterns documentation built on May 31, 2017, 3:34 p.m.

Search within the MutationalPatterns package
Search all R packages, documentation and source code