Get plot names and add or remove plots
Plots(data)AddGenePlot(data, name, FUN)
AddGlobalPlot(data, name, FUN, floating = FALSE)
PlotGene(data, name, gene)
PlotGlobal(data, name)
DropPlots(data, pattern = NULL)
Either the plot names or a grandR data with added/removed plots
A grandR object
The user-defined plot name
The plotting function to add
whether or not the plot should be shown as a floating window
The gene to plot
A regular expression that is matched to plot names
Plots()
: Obtain the plot names
AddGenePlot()
: Add a gene plot to the grandR object
AddGlobalPlot()
: Add a global plot to the grandR object
PlotGene()
: Create a gene plot
PlotGlobal()
: Create a global plot
DropPlots()
: Remove plots from the grandR object
FUN has to be a function with a single parameter for global plots (i.e., the grandR object) or two parameters for gene plots (i.e., the grandR object and the gene name). Usually, it is either the name of a plotting function, such as PlotGeneOldVsNew, or, if it is necessary to parametrize it, a call to Defer (which takes care of caching plots without storing an additional copy of the grandR object).
For floating window plots, if names are given in the format <title>.<name>, a plot is created for each <title> with several subplots.