EigensystemPlotParam is a list-based class for storing the parameters needed to specify plot features used by link{plot,plot-method} in plotting Eigensystem diagnostics, projections and transformations.
EigensystemPlotParam objects contain the following slots
plots:character vector indicating one or more plot choices from: "eigenfeatureHeatmap", "eigenassayHeatmap", "sortedHeatmap",
"fraction","scree","zoomedFraction", "lines", "allLines", "eigenfeaturePolar", "eigenassayPolar". Defaults to all. palette:function defining the palette to be used for heatmaps. Default is a Blue-Yellow color ramp. whichAssays:numeric vector listing which assays are to be included in the plot(s). Default is all. whichFeatures:numeric vector which features to include in plots. Default is all. whichEigenassays:numeric vector which eigenassays to include in plots. whichEigenfeatures:numeric vector which eigenfeatures to include in plots. Defaults to first four. whichPolarAxes:numeric vector which two eigenassays/eigenfeatures to include in polar plots. Default is first two. assayColorMap:lists of colors corresponding to the
levels of these annotations for assays and features. The elements of each list are named by the annotation column they
correspond to. Each element is itself a named vector of colors, named by the level of the annotation it reflects (see example). featureColorMap:list contrast:numeric value specifying the contrast to use in heatmaps. negativeValues:logical indicating whether scaling of values for heatmap should result in range that includes negative values. Default is TRUE.path:character specifying the path of files for figure output. Default is current working directory.prefix:character specifying an optional prefix to add to filenames. Default is biosvd.filenames:character optional name for the files containing the plots. Names correspond to elements of 'plots' vector.figure:logical specifying whether to ouptut plots into files. Default is FALSE. plots(x), plots(x) <- valuepalette(x), palette(x) <- valuewhichAssays(x), whichAssays(x) <- valuewhichFeatures(x), whichFeatures(x) <- valuewhichEigenassays(x), whichEigenassays(x) <- valuewhichEigenfeatures(x), whichEigenfeatures(x) <- valuewhichPolarAxes(x), whichPolarAxes(x) <- valueassayColorMap(x), assayColorMap(x) <- valuefeatureColorMap(x), featureColorMap(x) <- valuecontrast(x), contrast(x) <- valuenegativeValues(x), negativeValues(x) <- valuepath(x), path(x) <- valueprefix(x), prefix(x) <- valuefilenames(x), filenames(x) <- valuefigure(x), figure(x) <- valueEigensystemPlotParam class stores the list of desired plots, color palettes and keys, figure file and directory names and other necessary parameters.
Data in the EigensystemPlotParam may be organized into slots:
plots, palette, whichAssays, whichFeatures,
whichEigenassays, whichEigenfeatures, whichPolarAxes,
assayColorMap, featureColorMap, contrast,
negativeValues, path, prefix,
filename, figure,
brief descriptions of which follow.
data(YeastData_alpha)
params <- new("EigensystemPlotParam")
cellcycle.col.map <- c("orange2", "darkgreen", "blue2", "magenta2", "red2")
names(cellcycle.col.map) <- c("S", "G2", "M", "M/G1", "G1")
assayColorMap(params) <- list(Cell.cycle.stage=cellcycle.col.map)
featureColorMap(params) <- list(Cell.cycle.stage=NA)
Run the code above in your browser using DataLab