ggGate: Create gates from ggplot2 object

View source: R/ggGate.R

ggGateR Documentation

Create gates from ggplot2 object

Description

Create gates by clicking on ggplot2. A single click adds coordinates to the active polygon gate. A double click draws the active polygon gate, and annotates the raw ggplot2 data with new columns.

Usage

ggGate(p, write_data_to = "df_new", write_gate_to = "df_gate")

Arguments

p

ggplot2 object.

write_data_to

String. Sets the variable name of the data.frame that stores the annotated data underlying the ggplot2 object.

write_gate_to

String. Sets the variable name of the data.frame that stores the gating coordinates.


northNomad/ggGate documentation built on Oct. 26, 2023, 8:35 a.m.