View source: R/ggplot-coord-circle.R
coord_circle | R Documentation |
An extended version of coord_radial()
, providing
additional customization options.
coord_circle(
theta = "x",
start = 0,
end = NULL,
thetalim = NULL,
rlim = NULL,
expand = FALSE,
direction = 1,
clip = "off",
r.axis.inside = NULL,
rotate.angle = FALSE,
inner.radius = 0,
outer.radius = 0.95
)
theta |
variable to map angle to ( |
start |
Offset of starting point from 12 o'clock in radians. Offset
is applied clockwise or anticlockwise depending on value of |
end |
Position from 12 o'clock in radians where plot ends, to allow
for partial polar coordinates. The default, |
thetalim , rlim |
Limits for the |
expand |
If |
direction |
1, clockwise; -1, anticlockwise |
clip |
Should drawing be clipped to the extent of the plot panel? A
setting of |
r.axis.inside |
If |
rotate.angle |
If |
inner.radius |
A numeric in |
outer.radius |
A numeric in |
ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
coord_circle(
start = -0.4 * pi, end = 0.4 * pi,
inner.radius = 0.3, outer.radius = 1
)
ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
coord_circle(
start = -0.4 * pi, end = 0.4 * pi,
inner.radius = 0.3, outer.radius = 0.5
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.