plot_impacts {seqCAT} | R Documentation |
Plot SNV impact distributions for a binary SNV profile comparison.
plot_impacts(comparison, legend = TRUE, annotate = TRUE, annotate_size = 9, text_size = 14, palette = c("#0D2D59", "#1954A6"))
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). |
This function creates publication-ready plots of the impact distribution from a binary dataset comparison across the matched/mismatched SNVs.
A ggplot2 graphical object.
# Load test comparison data data(test_comparison) # Plot the impact distribution impacts <- plot_impacts(test_comparison)