View source: R/plot.entropyProfile.R
| plot.entropyProfile | R Documentation |
Creates entropy charts along a genome.
## S3 method for class 'entropyProfile'
plot(x, chartType = "bp", ...)
x |
Object of class |
chartType |
Whether to graph per-protein summaries ("bp"), per-protein stripcharts ("stripchart" / "swarm"), or position-wise entropy ("entroScan"). |
... |
Additional arguments passed to the function. |
Unrendered gg/ggplot object produced by ggplot2. This
function is primarily called for its side effects.
ancestral <- getEntropySignature(wWater[wWater$wave == "first", ])
omicron <- getEntropySignature(wWater[wWater$wave == "third", ])
# Enhanced Spike entropy plus pervasive negative selection in Omicron
# sublineages
anc_plot <- plot(ancestral, chartType = "stripchart")
omi_plot <- plot(omicron, chartType = "stripchart")
patchwork::wrap_plots(anc_plot/omi_plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.