Skip to contents

Get plot names and add or remove plots

Usage

Plots(data)

AddGenePlot(data, name, FUN)

AddGlobalPlot(data, name, FUN, floating = FALSE)

PlotGene(data, name, gene)

PlotGlobal(data, name)

DropPlots(data, pattern = NULL)

Arguments

data

A grandR object

name

The user-defined plot name

FUN

The plotting function to add

floating

whether or not the plot should be shown as a floating window

gene

The gene to plot

pattern

A regular expression that is matched to plot names

Value

Either the plot names or a grandR data with added/removed plots

Details

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.

Functions

  • 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