Skip to contents

Create a new ggplot.

Usage

# S3 method for flowFrame
ggplot(
  data = NULL,
  mapping = ggplot2::aes(),
  ...,
  environment = parent.frame()
)

Arguments

data

Default dataset to use for plot in the form of a flowFrame. If not specified, must be supplied in each layer added to the plot.

mapping

Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot. Note that variable names used for aesthetic mappings come from the featureNames of the input flowFrame.

...

Other arguments passed on to methods. Not currently used.

environment

Deprecated. Used prior to tidy evaluation.

Value

A ggplot

Examples

simulations <- simulate_cytometry_data()
test_flowframe <- simulations$flowframe

flowframe_plot <-
  test_flowframe |>
  ggplot2::ggplot(ggplot2::aes(x = feature_1, y = feature_2)) +
  ggplot2::geom_point()