Description Usage Arguments Format Examples
Circles are drawn with a specified radius centered at (x, y). This geom is very much exploratory - we are using it for drawing edges for self references. It is not explored for any more general use, so use with caution!
1 2 3 4 5 6 7 8 9 10 11 12 13 | GeomCircle
geom_circle(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
radius = 0.05,
...
)
|
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. |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
radius |
numeric value giving the radius of the circle to be drawn (0-1 normalized scale) |
... |
Other arguments passed on to |
An object of class GeomCircle
(inherits from Geom
, ggproto
, gg
) of length 5.
1 2 3 4 5 6 | # circles are drawn centered at x and y
library(ggplot2)
data(mpg)
ggplot(mpg, aes(displ, hwy)) + geom_circle(radius=0.1) + geom_point()
ggplot(mpg, aes(displ, hwy)) + geom_circle(linetype=2, radius=0.05, alpha=0.5)
ggplot(mpg, aes(displ, hwy)) + geom_circle(aes(linetype=factor(cyl)), radius=0.05, alpha=0.5)
|
Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.