addMultiSelectionCommands: Add multiple selection plotting commands

.addMultiSelectionPlotCommandsR Documentation

Add multiple selection plotting commands

Description

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

Usage

.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


csoneson/SEE documentation built on Oct. 13, 2024, 10:19 a.m.