facet_sector {ggalign} | R Documentation |
Polar coordinates with Facet support
Description
Draw each panel in a sector of the polar coordinate system. If
facet_sector()
is used in a ggplot, the coordinate system must be created
with coord_circle()
or coord_radial()
.
Usage
facet_sector(
facets,
sector_spacing = pi/180,
drop = TRUE,
radial = deprecated(),
spacing_theta = deprecated()
)
Arguments
facets |
A set of variables or expressions quoted by For compatibility with the classic interface, can also be a
formula or character vector. Use either a one sided formula, |
sector_spacing |
The size of spacing between different panel. A numeric
of the radians or a |
drop |
If |
radial |
|
spacing_theta |
Examples
ggplot(mtcars, aes(disp, mpg)) +
geom_point() +
facet_sector(vars(cyl)) +
coord_circle(
start = -0.4 * pi, end = 0.4 * pi, inner.radius = 0.3,
outer.radius = 0.8, expand = TRUE
)