coord_circle {ggalign} | R Documentation |
Polar Coordinates with Enhanced Controls
Description
An extended version of coord_radial()
, providing
additional customization options.
Usage
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
)
Arguments
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 |
Examples
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
)