plot.fsa | R Documentation |
Plots a fsa
object. For each selected channel, a line is drawn bewteen measured fluorescence intensities (y axis) along the electrophoresis time (x axis).
## S3 method for class 'fsa'
plot(x, units = NA, channels = NA, chanColors = NA, ladder = TRUE,
offScaleCol = "#FF0000", offScalePch = "+", offScaleCex = 0.4, bg = "white",
fg = "black", title = "", title.adj = 0, title.line = NA, xlab = NA,
ylab = "Intensity", xlim = NA, ylim = NA, xaxt = "s", yaxt = "s", bty = "o",
xaxp = NA, nticks = 5, all.bp = TRUE, peaks.alpha = 48L, peaks.srt = 30,
peaks.adj = c(0, 0), peaks.cex = 1.3, peaks.font = 2, legend.x = "topleft", ...)
x |
The |
units |
Single character value, the unit to use on x axis. "index" uses the raw index contained in files, "bp" usess base pair estimations but needs the object to be aligned first using |
channels |
Character or integer vector, the channels to plot. If |
chanColors |
Character vector defining colors to use to plot channels. Can be named according to channel names stored in |
ladder |
Single logical value, whether to add an x axis with size ladder peaks or not. Raises a warning if |
offScaleCol |
To be passed to |
offScalePch |
To be passed to |
offScaleCex |
To be passed to |
bg |
See |
fg |
See |
title |
Single character value, the main title to print on the plot. |
title.adj |
To be passed as |
title.line |
To be passed as |
xlab |
See |
ylab |
See |
xlim |
See |
ylim |
See |
xaxt |
See |
yaxt |
See |
bty |
See |
xaxp |
See |
nticks |
Single integer value. When |
all.bp |
Single logical value, whether to force an unlabeled axis tick at each bp when |
peaks.alpha |
Single integer value, the alpha channel to add to peak colors to make a background (255 is no transparency at all, 0 is invisible). |
peaks.srt |
To be passed as |
peaks.adj |
To be passed as |
peaks.cex |
To be passed as |
peaks.font |
To be passed as |
legend.x |
To be passed as |
... |
Further arguments to be passed to |
Invisibly returns TRUE
on success.
Sylvain Mareschal
read.fsa
# Example FSA file provided
fsa <- read.fsa(system.file("extdata/fsa_GEP/A5918.fsa", package="FSAtools"))
# Plot whole profile
plot(fsa)
# Plot subset of the profile (time index)
plot(fsa, units="index", xlim=c(4000,5000))
# Plot subset of the profile (base pairs)
fsa <- align.fsa(fsa)
plot(fsa, units="bp", xlim=c(80,130))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.