View source: R/pnpp_experiment-plot.R
plot.pnpp_experiment | R Documentation |
Same plot as plot.ddpcr_plate
but with a few extra
features that are specific to PNPP experiments The main additions are that
the negative frequency of each well can be written in each well, and well
background colours can be used to differentiate between wells with a
significant negative cluster vs wells with mostly positive drops. Take a look
at plot.ddpcr_plate
to see all supported parameters
and more information.
## S3 method for class 'pnpp_experiment'
plot(
x,
wells,
samples,
...,
col_drops_negative = "purple3",
col_drops_positive = "green3",
col_drops_rain = "black",
show_negative_freq = TRUE,
text_size_negative_freq = 4,
alpha_drops_low_negative_freq = 0.5,
show_low_high_neg_freq = TRUE,
bg_negative = "purple3",
bg_positive = "green3",
alpha_bg_low_high_neg_freq = 0.1,
superimpose = FALSE,
show_drops = TRUE,
drops_size = 1
)
x |
A ddPCR plate. |
wells |
Only plot selected wells. Supports range notation, see
|
samples |
Only plot selected samples. |
... |
Parameters to pass to |
col_drops_negative |
The colour to use for negative droplets.
See 'Droplet visibility options' for |
col_drops_positive |
The colour to use for positive droplets.
See 'Droplet visibility options' for |
col_drops_rain |
The colour to use for rain droplets.
See 'Droplet visibility options' for |
show_negative_freq |
If |
text_size_negative_freq |
Text size of the printed negative frequencies. |
alpha_drops_low_negative_freq |
Transparency of negative droplets in wells with mostly positive droplets. In wells where there are very few negative droplets, it might be useful to make them more visible by increasing their transparency. |
show_low_high_neg_freq |
Differentiate between wells with a high vs low negative frequency by having a different background colour to the well. |
bg_negative |
The background colour for wells that have a significant negative cluster. |
bg_positive |
The background colour for wells that have mostly positive drops. |
alpha_bg_low_high_neg_freq |
The transparency value for |
superimpose |
If |
show_drops |
Whether or not to show the droplets. Setting to |
drops_size |
Size of droplets. |
A ggplot2 plot object.
plot.ddpcr_plate
pnpp_experiment
## Not run:
plate <- new_plate(sample_data_dir(), type = plate_types$pnpp_experiment)
positive_dim(plate) <- "Y"
plot(plate)
plate <- plate %>% analyze
plot(plate)
plot(plate, "A01:C05", col_drops_rain = "blue")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.