ggplot.well {twoddpcr} | R Documentation |
ddpcrWell
and
ddpcrPlate
classes.These functions work in the same way as the original
ggplot
method, but handles the coercion of the object
into a data frame.
ggplot.well
is a ggplot
method
for the ddpcrWell
class.
ggplot.multiwell
is a ggplot
method for the ddpcrPlate
class.
ggplot.well( data, mapping = aes_string(x = "Ch2.Amplitude", y = "Ch1.Amplitude", colour = cMethod), cMethod = NULL, ..., environment = parent.frame() ) ## S4 method for signature 'ddpcrWell' ggplot.well( data, mapping = aes_string(x = "Ch2.Amplitude", y = "Ch1.Amplitude", colour = cMethod), cMethod = "None", ..., environment = parent.frame() ) ggplot.plate( data, mapping = aes_string(x = "Ch2.Amplitude", y = "Ch1.Amplitude", colour = class), cMethod = "None", ..., environment = parent.frame() ) ## S4 method for signature 'ddpcrPlate' ggplot.plate( data, mapping = aes_string(x = "Ch2.Amplitude", y = "Ch1.Amplitude", colour = cMethod), cMethod = "None", ..., environment = parent.frame() )
data |
A |
mapping |
A list of aesthetic mappings to use for the plot. Defaults to
|
cMethod |
The name or column number of the classification to use. This
is renamed internally to "class" for use with |
... |
Other arguments passed onto |
environment |
Where to look if a mapping variable is not defined.
Defaults to |
A ggplot
object using the slots in the given
object.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
dropletPlot
builds upon these ggplot
methods
to plot droplet amplitude plots with a colour-blind friendly palette.
The original ggplot
method in the
ggplot2
package is used internally.
## Plot the droplets in one well. library(ggplot2) aWell <- ddpcrWell(KRASdata[["E03"]]) ggplot.well(aWell, cMethod="Cluster") + geom_point() ## Plot the droplets in all of the wells in a single plot. krasPlate <- ddpcrPlate(KRASdata) ggplot.plate(krasPlate, cMethod="Cluster") + geom_point()