plot_impacts: Plot SNV impact distribution

Description Usage Arguments Details Value Examples

View source: R/plot_impacts.R

Description

Plot SNV impact distributions for a binary SNV profile comparison.

Usage

1
2
3
plot_impacts(comparison, legend = TRUE, annotate = TRUE,
  annotate_size = 9, text_size = 14, palette = c("#0D2D59",
  "#1954A6"))

Arguments

comparison

The SNV profile comparison to be plotted.

legend

Show the legend (boolean).

annotate

Annotate each category (boolean).

annotate_size

Text size for annotations (numeric).

text_size

Text size for axes, ticks and legend (numeric).

palette

Colour palette for filling of bars (character vector).

Details

This function creates publication-ready plots of the impact distribution from a binary dataset comparison across the matched/mismatched SNVs.

Value

A ggplot2 graphical object.

Examples

1
2
3
4
5
# Load test comparison data
data(test_comparison)

# Plot the impact distribution
impacts <- plot_impacts(test_comparison)

fasterius/seqCAT documentation built on Feb. 12, 2022, 7:24 p.m.