coord_plate | R Documentation |
This coordinate functions makes your plot look more like a microwell plate.
coord_plate( xlim = NULL, ylim = NULL, expand = TRUE, default = FALSE, clip = "off", corner = "right", specs = 96 )
xlim |
Limits for the x and y axes. |
ylim |
Limits for the x and y axes. |
expand |
If |
default |
Is this the default coordinate system? If |
clip |
Should drawing be clipped to the extent of the plot panel? A
setting of |
corner |
The place to draw the notched corner of a plate. Can be one of
|
specs |
Either a |
The panel.background
theme element now draws a polygon instead
of a rectangle in case corner != "none"
. Moreover, the panel.grid.major
element is used to draw circles at well positions and panel.grid.minor
is
used to draw regular grid lines. Actual minor breaks are ignored.
The dimensions of most standard plates are roughly based on technical data sheets available on the Eppendorf website, a manufacturer of cell culture consumables.
A Coord
object that can be added to a plot.
# Make basic plot df <- data.frame(x = 1:4, y = 1:4) p <- ggplot(df, aes(x = x, y = y)) + geom_well() # Using spec and limits to change layout p + coord_plate(spec = 96, xlim = c(1, 12), ylim = c(1, 8)) p + coord_plate(spec = 48, xlim = c(1, 8), ylim = c(1, 6)) # Changing where the corner is placed p + coord_plate(spec = 24, xlim = c(1, 6), ylim = c(1, 4), corner = "left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.