plot.custom_thresholds {ddpcr}R Documentation

Plot a ddPCR plate of type custom thresholds

Description

Same plot as plot.ddpcr_plate but with a few extra features that are specific to plates with custom thresholds. Take a look at plot.ddpcr_plate to see all supported parameters and more information.

Usage

## S3 method for class 'custom_thresholds'
plot(
  x,
  wells,
  samples,
  ...,
  show_thresholds = TRUE,
  col_thresholds = "black",
  show_drops_empty = TRUE,
  col_drops_x_positive = "green3",
  col_drops_y_positive = "blue",
  col_drops_both_positive = "orange"
)

Arguments

x

A ddPCR plate.

wells

Only plot selected wells. Supports range notation, see subset.ddpcr_plate.

samples

Only plot selected samples.

...

Parameters to pass to plot.ddpcr_plate.

show_thresholds

If TRUE, show the thresholds.

col_thresholds

The colour of the threshold lines.

show_drops_empty

Whether or not to show the droplets defined as empty.

col_drops_x_positive

The colour to use for droplets that are in the X+Y- quadrant.

col_drops_y_positive

The colour to use for droplets that are in the X-Y+ quadrant.

col_drops_both_positive

The colour to use for droplets that are in the X+Y+ quadrant.

Value

A ggplot2 plot object.

See Also

plot.ddpcr_plate
custom_thresholds

Examples

## Not run: 
plate <- new_plate(sample_data_dir(), type = plate_types$custom_thresholds)
plate %>% set_thresholds(c(5500, 8000)) %>% analyze %>% plot

## End(Not run)

[Package ddpcr version 1.15 Index]