.plotpD(object,runs=1:length(object@rawdata),mzind=1:nrow(object@rawdata[[1]]), mind=NULL,plotSampleLabels=TRUE,calcGlobalMax=FALSE,peakCex = 0.8,plotPeaks=TRUE,
plotPeakBoundaries=FALSE,plotPeakLabels=FALSE,plotMergedPeakLabels=TRUE,mlwd=3,
usePeaks=TRUE,plotAcrossRuns=FALSE,overlap=F,rtrange=NULL,cols=NULL,thin=1,
max.near=median(object@rawrt[[1]]),how.near=50,scale.up=1,...)
.plotpA(object,xlab="Peaks - run 1",ylab="Peaks - run 2",plotMatches=TRUE,matchPch=19,matchLwd=3, matchCex=.5,matchCol="black",col=colorpanel(50,"black","blue","white"),
breaks=seq(0,1,length=51),...)
.plotcA(object,alignment=1,...)
peaksDataset
, peaksAlignment
or clusterAlignment
object.peaksDataset
only: set of run indices to plotpeaksDataset
only: set of mass-to-charge indices to sum over (default, all)peaksDataset
only: matrix of aligned indicespeaksDataset
only: logical, whether to display sample labelspeaksDataset
only: logical, whether to calculate an overall maximum for scalingpeaksDataset
only: logical, whether to plot hashes for each peakpeaksDataset
only: logical, whether to display peak boundariespeaksDataset
only: logical, whether to display peak labelspeaksDataset
only: logical, whether to display 'merged' peak labelspeaksDataset
only: line width of lines indicating the alignmentpeaksDataset
only: logical, whether to plot alignment of peaks (otherwise, scans)peaksDataset
only: logical, whether to plot across peaks when unmatched peak is givenpeaksDataset
only: logical, whether to plot TIC/XICs overlappingpeaksDataset
only: vector of length 2 giving start and end of the X-axispeaksDataset
only: vector of colours (same length as the length of runs)peaksDataset
only: when usePeaks=FALSE
, plot the alignment lines every thin
valuespeaksDataset
only: where to look for maximumpeaksDataset
only: how far away from max.near
to lookpeaksDataset
only: a constant factor to scale the TICspeaksDataset
only: logical, whether to plot matchespeaksAlignment
and clusterAlignment
only: x-axis labelpeaksAlignment
and clusterAlignment
only: y-axis labelpeaksAlignment
and clusterAlignment
only: match plotting characterpeaksAlignment
and clusterAlignment
only: match line widthpeaksAlignment
and clusterAlignment
only: match character expansion factorpeaksAlignment
and clusterAlignment
only: match colourpeaksAlignment
and clusterAlignment
only: vector of colours for colourscalepeaksAlignment
and clusterAlignment
only: vector of breaks for colourscalepeaksAlignment
and clusterAlignment
only: the set of alignments to plotplot
or image
commandpeakDataset
objects, each TIC is scale to the maximum value (as specified by the how.near
and max.near
values). The many parameters gives considerable flexibility of how the TICs can be visualized.For peakAlignment
objects, the similarity matrix is plotted and optionally, the set of matching peaks. clusterAlignment
objects are just a collection of all pairwise peakAlignment
objects.
Mark D Robinson (2008). Methods for the analysis of gas chromatography - mass spectrometry data PhD dissertation University of Melbourne.
plotImage
, peaksDataset
require(gcspikelite)
# paths and files
gcmsPath<-paste(find.package("gcspikelite"),"data",sep="/")
cdfFiles<-dir(gcmsPath,"CDF",full=TRUE)
eluFiles<-dir(gcmsPath,"ELU",full=TRUE)
# read data
pd<-peaksDataset(cdfFiles[1:3],mz=seq(50,550),rtrange=c(7.5,8.5))
# image plot
plot(pd,rtrange=c(7.5,8.5),plotPeaks=TRUE,plotPeakLabels=TRUE)
Run the code above in your browser using DataLab