TRAMP. The plot displays (1) ## S3 method for class 'TRAMP':
plot(x, sample.fk, ...)
TRAMP.plotone(x, sample.fk, grouped=FALSE, ignore=FALSE,
all.knowns=TRUE, all.samples=FALSE,
all.samples.global=FALSE, col=1:10,
pch=if (grouped) 15 else 16, xmax=NULL, horiz.lines=TRUE,
mar.default=.5, p.top=.5, p.labels=1/3, cex.axis=NULL,
cex.axis.max=1)TRAMP object.sample.fk to plot. If omitted, then all
samples are plotted, one after the other (this is useful for
generating a summary of all fits for printing out: see Example).remove.TRAMP.match be excluded?points for
possible values and their interpretation). By default, this will
use filled circles when ungrouped and filled squares when grouped.NULL (the default) uses the range of all data found in the
TRAMPsamples object (rounded up to the nearest 100).
NA will use the range of all data in1-p.top of the plot.1-p.labels will be used for the
plots (try increasing this if you have very long species or group
names).NULL (the
default), then the largest cex that will exactly fit labels is
chosen (up to cex.axis.max).cex.axis is
NULL).TRAMP.plotone.TRAMP fit, illustrating
where knowns match the sample data, and which sample peaks remain
unmatched.
The top portion of the plot displays grouped is TRUE) are represented by different horizontal
lines. Where the sample matches a particular known, a symbol is drawn
(Beware: it may look like only one symbol is drawn when several
symbols are plotted on top of one another).
The bottom portion of the plot displays the all.knowns, all.samples and
all.samples.global; see below). The height is arbitrary, so
units are ommited.
The arguments all.knowns, all.samples and
all.samples.global control which enzyme/primer combinations are
displayed in the plot. all.knowns=TRUE displays all
combinations present in the knowns database and
all.samples=TRUE displays all combinations present in the
samples; when all.samples.global=TRUE this is combinations
across the entire samples data set, otherwise this is samples present
in the current sample only. At least one of all.knowns
and all.samples must be TRUE.plot.TRAMPknowns, for plotting TRAMPknowns
objects, and plot.TRAMPsamples, for plotting
TRAMPsamples objects.data(demo.samples)
data(demo.knowns)
res <- TRAMP(demo.samples, demo.knowns)
plot(res, 101)
plot(res, 110)
plot(res, 117)
plot(res, 117, grouped=TRUE)
# Create a PDF file with all matches:
pdf("all_matches.pdf")
plot(res)
dev.off()Run the code above in your browser using DataLab