Description Usage Arguments Value Author(s) See Also Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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.
1 2 3 4 5 6 7 8 | ## 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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.