addMultiSelectionCommands: Add multiple selection plotting commands

Description Usage Arguments Details Value Author(s)

Description

Add ggplot instructions to create brushes and lassos for both saved and active mutliple selections in a DotPlot panel.

Usage

1
.addMultiSelectionPlotCommands(x, envir, commands, flip = FALSE)

Arguments

x

An instance of a DotPlot class.

envir

The environment in which the ggplot commands are to be evaluated.

commands

A character vector representing the sequence of commands to create the ggplot object.

flip

A logical scalar indicating whether the x- and y-axes are flipped, only relevant to horizontal violin plots.

Details

This is a utility function that is intended for use in .generateDotPlot. It will modify envir by adding all_active and all_saved variables, so developers should not use these names for their own variables in envir.

If no self-selection structures exist in x, commands is returned directly without modification.

Value

A character vector containing commands plus any additional commands required to draw the self selections.

Author(s)

Aaron Lun


iSEE documentation built on Feb. 3, 2021, 2:01 a.m.