plotDispEsts {JunctionSeq} | R Documentation |
Plots the countbin-specific estimated dispersion and the fitted dispersion curve.
plotDispEsts( jscs, ylim, xlim, linecol=c("#0000FF","#FF0000"), pointcol = c("#00009980","#99000080"), title.main = "Dispersion Estimates", xlab = "Mean Normalized Coverage", ylab = "Dispersion", miniTicks = TRUE, pch.MLE = 46, pch.MAP = 1, lwd.fitted = 2, par.cex = 1, points.cex = 1, text.cex = 1, lines.cex = 8, use.smoothScatter = FALSE, smooth.nbin = 512, nrpoints = 100, plot.exon.results = TRUE, plot.junction.results = TRUE, anno.lwd = 2, mar = c(4.1,4.1,3.1,1.1), show.legends = TRUE, verbose = TRUE, debug.mode = FALSE, ... )
jscs |
A Alternatively, this can be created manually by |
ylim |
The plotting range for the y-axis. |
xlim |
The plotting range for the x-axis. |
linecol |
Character vector of length 2. The line color to use for the fit line. If the fits were performed separately for exons and junctions, the junction line will be drawn with the second color. |
pointcol |
Character vector of length 2. The point color to use for the final dispersions. If the fits were performed separately for exons and junctions, the junction points will be drawn with the second color. |
title.main |
The main title of the plot. |
xlab |
The label for the x-axis. |
ylab |
The label for the y-axis. |
miniTicks |
Whether or not to plot smaller ticks at the tenth-decades. |
par.cex |
The base cex value to be passed to par() immediately before all plots are created. See |
points.cex |
The character expansion value for the plotted points. |
text.cex |
The character expansion value for the annotation text (labels, etc). |
lines.cex |
The character expansion value for lines. What this means seems to vary depending on the plotting device. |
pch.MLE |
Numeric. The pch code for the MLE (ie single-feature) dispersion estimate. The default is a small point. |
pch.MAP |
Numeric. The pch code for the MAP (ie. final) dispersion estimate. The default is a circle. |
lwd.fitted |
Numeric. The width of the dispersion fit line(s). |
use.smoothScatter |
Logical. If TRUE, features will be ploted with density shading rather than having each point plotted. |
smooth.nbin |
The number of bins to smooth, for the density plot, if |
nrpoints |
The number of extra points to plot, if |
plot.exon.results |
Logical. If |
plot.junction.results |
Logical. If |
anno.lwd |
The lwd value to be passed to |
mar |
The margin sizes, expressed in lines. see |
show.legends |
Logical. If |
verbose |
if |
debug.mode |
if |
... |
Additional options to pass to plotting functions, particularly graphical parameters. |
This is a side-effecting function, and does not return a value.
data(exampleDataSet,package="JctSeqData");
plotDispEsts(jscs);
## abundance ranges from 0.146009972023612 to 5452.18841073905
## dispersion ranges from 1.94121697570967e-06 to 2.08746163174998
## Plotting dispersions from 2.71367228072472e-05 to 2.08746163174998
## Not run:
##D ########################################
##D #Set up example data:
##D decoder.file <- system.file(
##D "extdata/annoFiles/decoder.bySample.txt",
##D package="JctSeqData");
##D decoder <- read.table(decoder.file,
##D header=TRUE,
##D stringsAsFactors=FALSE);
##D gff.file <- system.file(
##D "extdata/cts/withNovel.forJunctionSeq.gff.gz",
##D package="JctSeqData");
##D countFiles <- system.file(paste0("extdata/cts/",
##D decoder$sample.ID,
##D "/QC.spliceJunctionAndExonCounts.withNovel.forJunctionSeq.txt.gz"),
##D package="JctSeqData");
##D ######################
##D #Run example analysis:
##D jscs <- runJunctionSeqAnalyses(sample.files = countFiles,
##D sample.names = decoder$sample.ID,
##D condition=factor(decoder$group.ID),
##D flat.gff.file = gff.file,
##D analysis.type = "junctionsAndExons"
##D );
##D ########################################
##D
##D #Plot dispersions:
##D plotDispEsts(jscs);
##D
## End(Not run)