plot_impacts {seqCAT}R Documentation

Plot SNV impact distribution

Description

Plot SNV impact distributions for a binary SNV profile comparison.

Usage

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

# Load test comparison data
data(test_comparison)

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

[Package seqCAT version 1.2.1 Index]