geom_well | R Documentation |
This geoms draws circles in a fixed size.
geom_well( mapping = NULL, data = NULL, stat = "identity", position = "identity", ..., na.rm = FALSE, show.legend = NA, inherit.aes = TRUE )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
The sized is fixed such that a size = 1
corresponds to 1 unit
on the x- or y-axis, whichever one has the larger range. Alternatively,
when combined with coord_plate()
, setting size = 1
is equivalent to
setting the size to a well's diameter.
A Layer
object that can be added to a plot.
df <- expand.grid(LETTERS[1:3], 1:4) df$value <- seq_len(nrow(df)) # A basic plot that just draws circles p <- ggplot(df, aes(Var2, Var1, fill = value)) + geom_well() # With plate coordinates, plot resembles microwell plate p + coord_plate(specs = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.