plot_river: Plot a riverplot

Description Usage Arguments Value See Also Examples

View source: R/plot_river.R

Description

Function to plot a SNV mutation matrix as a riverplot. This is especially usefull when looking at a wide mutational context

Usage

1
plot_river(mut_matrix, condensed = FALSE)

Arguments

mut_matrix

Matrix containing mutation counts.

condensed

More condensed plotting format. Default = F.

Value

A ggplot object

See Also

mut_matrix, plot_96_profile, plot_profile_heatmap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## See the 'mut_matrix()' examples for how we obtained the
## mutation matrix information:
## Get regular matrix
mut_mat <- readRDS(system.file("states/mut_mat_data.rds",
  package = "MutationalPatterns"
))

## Create heatmap of profile
plot_river(mut_mat[,c(1,4)])

## Get extended matrix
mut_mat_extended <- readRDS(system.file("states/mut_mat_data_extended.rds",
  package = "MutationalPatterns"
))

## Create heatmap of extended profile
plot_river(mut_mat_extended[,c(1,4)])

## Create condensed version of riverplot
plot_river(mut_mat_extended[,c(1,4)], condensed = TRUE)

MutationalPatterns documentation built on Nov. 14, 2020, 2:03 a.m.