facetPlot {twoddpcr} | R Documentation |
Plot each of the wells in a ddpcrPlate
object or
a large data frame of droplets. By default, a density plot is returned for
speed purposes.
facetPlot(droplets, ch1Label = "Ch1 Amplitude", ch2Label = "Ch2 Amplitude", cMethod = NULL, binwidth = 100, pointSize = 0.1, plotLimits = list(x = c(1000, 9000), y = c(3000, 13500)), showEmptyWells = FALSE) ## S4 method for signature 'data.frame' facetPlot(droplets, ch1Label = "Ch1 Amplitude", ch2Label = "Ch2 Amplitude", cMethod = NULL, binwidth = 100, pointSize = 0.1, plotLimits = list(x = c(1000, 9000), y = c(3000, 13500)), showEmptyWells = FALSE) ## S4 method for signature 'ddpcrPlate' facetPlot(droplets, ch1Label = "Ch1 Amplitude", ch2Label = "Ch2 Amplitude", cMethod = NULL, binwidth = 100, pointSize = 0.1, plotLimits = list(x = c(1000, 9000), y = c(3000, 13500)), showEmptyWells = FALSE)
droplets |
A |
ch1Label |
The label for the channel 1 target. Defaults to "Ch1 Amplitude". |
ch2Label |
The label for the channel 2 target. Defaults to "Ch2 Amplitude". |
cMethod |
This should be the name or column number of |
binwidth |
The width of each hexagonal bin in the density plot. Ignored
if |
pointSize |
If |
plotLimits |
A list of 2-element vectors with names |
showEmptyWells |
If |
A collection of plots as a ggplot
object.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
The nice log-scaled palette was achieved using http://www.everydayanalytics.ca/2014/09/5-ways-to-do-2d-histograms-in-r.html
By default, each subplot uses the same plotting style as
heatPlot
.
## Plot a facet wrap of density plots of each well. krasPlate <- ddpcrPlate(wells=KRASdata) facetPlot(krasPlate)