View source: R/om_reseq_basic.R
om_var_pie_plot | R Documentation |
Using ggplot2 to generate pie plot of variant summary.
Variant summary data is generated using om_var_pie_stats
.
om_var_pie_plot(sample_var_stats, color_pal = "Set2", out_prefix = NULL)
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 |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.