View source: R/plot_functions.R
plot_vairants | R Documentation |
Plot variants
plot_vairants( df, type = "density", var = "freq", pal = "mg", pal_dir = -1, clade = NULL, plotly = TRUE )
df |
output of function prepro_variants |
type |
Class of plot. Options: density or bar |
var |
variable to plot. Options: "freq" and "counts" |
pal |
Used palette |
pal_dir |
Palete direction order. Options: 1 and -1 |
clade |
List with clade to plot |
plotly |
boolean indicating if output plot must be plotly |
plotly or ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.