plotCovariance(msa, helix, arcs = TRUE, add = FALSE, grid = FALSE, text = FALSE, legend = TRUE, species = 0, base.colour = FALSE, palette = NA, flip = FALSE, grid.col = "white", grid.lwd = 0, text.cex = 0.5, text.col = "white", text.font = 2, text.family = "sans", species.cex = 0.5, species.col = "black", species.font = 2, species.family = "mono", shape = "circle", conflict.cutoff = 0.01, conflict.lty = 2, conflict.col = NA, pad = c(0, 0, 0, 0), y = 0, x = 0, ...) plotDoubleCovariance(top.helix, bot.helix, top.msa, bot.msa = top.msa, add = FALSE, grid = FALSE, species = 0, legend = TRUE, pad = c(0, 0, 0, 0), ...) plotOverlapCovariance(predict.helix, known.helix, msa, bot.msa = TRUE, overlap.cutoff = 1, miss = "black", add = FALSE, grid = FALSE, species = 0, legend = TRUE, pad = c(0, 0, 0, 0), ...)
Biostrings
XStringSet
object or a named array of strings like ones obtained
from converting XStringSet with as.character
. top.msa
and bot.msa
are specific to top.helix
and
bot.helix
respectively, and may be set to NA to have no
multiple sequence alignment at all.
msa
, See plotDoubleHelix
and plotOverlapHelix
for
detailed explanations of top.helix
, bot.helix
,
predict.helix
, and known.helix
.
plotHelix
for
details.
blankPlot
.
grid
is
TRUE.
text
option. Use help("par")
for more information the paramters.
species
option. Use help("par")
for more information the
paramters.
lty = 2
) and whatever colour was originally assigned to it
(col = NA
). Conflicting helices may be coloured by setting
conflict.col
to some R-compatible colour name. If both arguments
are set to NA
, then no attempt to exclude conflicting helices
will be made when colouring covariance plot columns, which in most cases
will render the plot nonsensical. When the input has helices with
multiple basepairs, and only part of the helix is conflicting, the
conflict.cutoff
determines above what percentage of basepairs
have to be conflicting before a helix is considered conflicting, with the
default set at 1
conflicting).
plotOverlapHelix
for more information.
blankPlot
, specifies the
number of pixels to pad the bottom, left, top and right sides of the
figure with, repsectively.
plotCovariance
, these are additional arguments passed to
blankPlot
, useful arguments include lwd,
col, cex for line width, line colour, and text size,
respectively. help('par')
for more. For plotDoubleCovariance
and plotOverlapCovariance
, these
are additional arguments passed to plotCovariance
(and thus
indirectly also to blankPlot
).
plotHelix
data(helix)
# Basic covariance plot
plotCovariance(fasta, known, cex = 0.8, lwd = 1.5)
# Grid mode
plotCovariance(fasta, known, grid = TRUE, text = FALSE, cex = 0.8)
# Global style and nucleotide colouring
plotCovariance(fasta, known, grid = TRUE, text = FALSE, base.colour = TRUE)
# Styling indivual helices with styling columns
known$col <- c("red", "blue")
plotCovariance(fasta, known, lwd = 2, cex = 0.8)
# Use in combination with colourBy functions
cov <- colourByCovariation(known, fasta, get = TRUE)
plotCovariance(fasta, cov)
legend("topleft", legend = attr(cov, "legend"),
fill = attr(cov, "fill"), title = "Covariation")
Run the code above in your browser using DataLab