Usage
plotCIsGenes(QSarray, path.index=1, gene.list=NULL, sort.by=NULL, lowerBound=0.025, upperBound=1-lowerBound, asBand=FALSE, col=NULL, addGrid=TRUE, x.labels=NULL, cex.xaxis=1, shift=0.0, pathwayCI=c("band","bar","none"), meanCol=4, add=FALSE, ylim=NULL, xlim=NULL, ylab=NULL, xlab=NULL, main=NULL, sub=NULL, ... )
Arguments
path.index
which pathway to plot. Can either be numeric or a character vector containing the names of the pathways to plot. Must be of length 1
gene.list
Character vector specifying the genes in the gene set to be plotted. If sort.by='none'
, the order of these genes will be used. NAs are accepted.
sort.by
one of c(mean,p,none), specifying how to order the genes. If NULL and gene.list is provided, default is "none", else, default is "mean".
lowerBound, upperBound
numeric indicating the lower and upper bounds of the confidence intervals. Default is for a 95% confidence interval.
asBand
logical indicating if CIs should be plotted as a grey band or as arrows
col
an optional vector indicating the color for the points.
addGrid
Should guiding dashed lines be plotted?
x.labels
character vector indicating the names of the genes to be plotted along the x-axis. By default, will use the names stored in QSarray, or gene.list
, if specified.
cex.xaxis
set cex parameter seperately for x axis label
shift
a number between 0 and 1 decribing the amount to shift points with respects to the guiding lines and axis labels. Useful when add=TRUE
pathwayCI
A string, one of "band", "bar", or "none", determining whether to add the confidence interval for the gene set PDF to the plot. By default ("band"), a band will be plotted behind the bars for the individual genes. If "bar" is specificied, another error bar will be added before the genes' error bars. To suppress the plotting of the pathway band, specify pathwayCI="none"
.
meanCol
color for the line indicating the mean of the pathway. Only used if pathwayCI
is either 'band'
or 'bar'
add
logical indicating whether a new plot should be created. If FALSE
, a new plot will be generated.
xlim, ylim, xlab, ylab, main, sub,...
parameters to be passed on to plot
. If NULL
, defaults will be used.