Draws the aa_composition() table three ways. "bar" and "heatmap" show
the residue frequency itself; "enrichment" shows log2 of each group's
frequency over the pooled frequency of the whole table, which puts every
residue on a common, centred axis and makes a compositional shift between
Conditions visible without an external proteome background.
Usage
plot_aa_composition(
comp,
type = c("bar", "heatmap", "enrichment"),
title = NULL
)Arguments
- comp
Output of
aa_composition()(needsFrequency).- type
"bar"(default),"heatmap"or"enrichment".- title
Plot title.
NULL(default) picks one fromtype.
Examples
if (FALSE) { # \dontrun{
plot_aa_composition(aa_composition(pep_short$Sequence, pep_short$Condition))
} # }