View source: R/ggplot-facet-sector.R
facet_sector | R Documentation |
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()
.
facet_sector(
facets,
sector_spacing = pi/180,
drop = TRUE,
radial = deprecated(),
spacing_theta = deprecated()
)
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.