plot.enve.RecPlot2 {enveomics.R} | R Documentation |
Enveomics: Recruitment Plot (2)
Description
Plots an enve.RecPlot2
object.
Usage
## S3 method for class 'enve.RecPlot2'
plot(
x,
layout = matrix(c(5, 5, 2, 1, 4, 3), nrow = 2),
panel.fun = list(),
widths = c(1, 7, 2),
heights = c(1, 2),
palette = grey((100:0)/100),
underlay.group = TRUE,
peaks.col = "darkred",
use.peaks,
id.lim = range(x$id.breaks),
pos.lim = range(x$pos.breaks),
pos.units = c("Mbp", "Kbp", "bp"),
mar = list(`1` = c(5, 4, 1, 1) + 0.1, `2` = c(ifelse(any(layout == 1), 1, 5), 4, 4, 1)
+ 0.1, `3` = c(5, ifelse(any(layout == 1), 1, 4), 1, 2) + 0.1, `4` =
c(ifelse(any(layout == 1), 1, 5), ifelse(any(layout == 2), 1, 4), 4, 2) + 0.1, `5` =
c(5, 3, 4, 1) + 0.1, `6` = c(5, 4, 4, 2) + 0.1),
pos.splines = 0,
id.splines = 1/2,
in.lwd = ifelse(is.null(pos.splines) || pos.splines > 0, 1/2, 2),
out.lwd = ifelse(is.null(pos.splines) || pos.splines > 0, 1/2, 2),
id.lwd = ifelse(is.null(id.splines) || id.splines > 0, 1/2, 2),
in.col = "darkblue",
out.col = "lightblue",
id.col = "black",
breaks.col = "#AAAAAA40",
peaks.opts = list(),
...
)
Arguments
x |
|
layout |
Matrix indicating the position of the different panels in the layout, where:
Only panels indicated here will be plotted. To plot only one panel simply set this to the number of the panel you want to plot. |
panel.fun |
List of functions to be executed after drawing each panel. Use the
indices in |
widths |
Relative widths of the columns of |
heights |
Relative heights of the rows of |
palette |
Colors to be used to represent the counts matrix, sorted from no hits to the maximum sequencing depth. |
underlay.group |
If TRUE, it indicates the in-group and out-group areas couloured based
on |
peaks.col |
If not |
use.peaks |
A list of |
id.lim |
Limits of identities to represent. |
pos.lim |
Limits of positions to represent (in bp, regardless of |
pos.units |
Units in which the positions should be represented (powers of 1,000 base pairs). |
mar |
Margins of the panels as a list, with the character representation of
the number of the panel as index (see |
pos.splines |
Smoothing parameter for the splines in the position histogram. Zero
(0) for no splines. Use |
id.splines |
Smoothing parameter for the splines in the identity histogram. Zero
(0) for no splines. Use |
in.lwd |
Line width for the sequencing depth of in-group matches. |
out.lwd |
Line width for the sequencing depth of out-group matches. |
id.lwd |
Line width for the identity histogram. |
in.col |
Color associated to in-group matches. |
out.col |
Color associated to out-group matches. |
id.col |
Color for the identity histogram. |
breaks.col |
Color of the vertical lines indicating sequence breaks. |
peaks.opts |
Options passed to |
... |
Any other graphic parameters (currently ignored). |
Value
Returns a list of enve.RecPlot2.Peak
objects (see
enve.recplot2.findPeaks
). If peaks.col=NA
or
layout
doesn't include 4, returns NA
.
Author(s)
Luis M. Rodriguez-R [aut, cre]