plotMutationHeatmap: Title Compare mutation prevalences between lineages

View source: R/plotMutationHeatmap.R

plotMutationHeatmapR Documentation

Title Compare mutation prevalences between lineages

Description

Plots a heatamp of mutation prevalence across particular lineages.

Usage

plotMutationHeatmap(df, gene2Plot = "S", title = NULL, lightBorders = TRUE)

Arguments

df

Resulting dataframe from calling getMutationsByLineage

gene2Plot

(optional) string containing which genes to include, e.g. "Orf1a" By default, will limit the mutations to those in the S-gene.

title

(optional) title to add to the plot

lightBorders

(optional) boolean; whether the borders between grid items should be separated with a light or dark border.

Examples

p1 = getMutationsByLineage(pangolin_lineage = "P.1", frequency = 0.5)
plotMutationHeatmap(p1, gene2Plot = "ORF1a")


outbreak-info/R-outbreak-info documentation built on March 2, 2023, 9:58 a.m.