View source: R/TargetingModels.R
plotMutability | R Documentation |
plotMutability
plots the mutability rates of a TargetingModel
.
plotMutability(
model,
nucleotides = c("A", "C", "G", "T"),
mark = NULL,
style = c("hedgehog", "bar"),
size = 1,
silent = FALSE,
...
)
model |
TargetingModel object or vector containing normalized mutability rates. |
nucleotides |
vector of center nucleotide characters to plot. |
mark |
vector of 5-mer motifs to highlight in the plot. If |
style |
type of plot to draw. One of:
|
size |
numeric scaling factor for lines and text in the plot. |
silent |
if |
... |
additional arguments to pass to ggplot2::theme. |
A named list of ggplot objects defining the plots, with names defined by the center nucleotide for the plot object.
Takes as input a TargetingModel object. See createTargetingModel for model building.
# Plot one nucleotide in circular style
plotMutability(HH_S5F, "C")
# Plot two nucleotides in barchart style
plotMutability(HH_S5F, c("G", "T"), style="bar")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.