View source: R/type-custom_thresholds.R
plot.custom_thresholds | R Documentation |
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.
## 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"
)
x |
A ddPCR plate. |
wells |
Only plot selected wells. Supports range notation, see
|
samples |
Only plot selected samples. |
... |
Parameters to pass to |
show_thresholds |
If |
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. |
A ggplot2 plot object.
plot.ddpcr_plate
custom_thresholds
## Not run:
plate <- new_plate(sample_data_dir(), type = plate_types$custom_thresholds)
plate %>% set_thresholds(c(5500, 8000)) %>% analyze %>% plot
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.