om_var_pie_plot: Pie Plot of variant stats

View source: R/om_reseq_basic.R

om_var_pie_plotR Documentation

Pie Plot of variant stats

Description

Using ggplot2 to generate pie plot of variant summary. Variant summary data is generated using om_var_pie_stats.

Usage

om_var_pie_plot(sample_var_stats, color_pal = "Set2", out_prefix = NULL)

Arguments

sample_var_stats

variant stats of each sample

color_pal

color palette name, default is "Set2"

out_prefix

output prefix, default is NULL, no output

Examples


# pie plot data format
a_om_test_var_stats <- dplyr::filter(om_test_var_stats[[1]], variable == 'A')
head(a_om_test_var_stats)
# plot
om_var_pie_plot(a_om_test_var_stats)

bioShaun/omplotr documentation built on June 11, 2025, 7:48 a.m.