plot_vairants: Plot variants

View source: R/plot_functions.R

plot_vairantsR Documentation

Plot variants

Description

Plot variants

Usage

plot_vairants(
  df,
  type = "density",
  var = "freq",
  pal = "mg",
  pal_dir = -1,
  clade = NULL,
  plotly = TRUE
)

Arguments

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

Value

plotly or ggplot object


MicrobialGenomics/covidapp documentation built on Feb. 9, 2023, 1:04 a.m.