| ggcircumplex | R Documentation |
Build an empty circular canvas – the amplitude rings, displacement spokes,
and scale labels that circumplex figures are drawn on – as a ggplot2
object. Additional layers (points, arcs, annotations) can be added to it
with +, so it serves as the reusable foundation for custom circumplex
visualizations. The package's own ssm_plot_circle() draws on the same
canvas.
ggcircumplex(
angles = octants(),
labels = NULL,
amax = 0.5,
font_size = 12,
instrument = NULL,
grid = c("polar", "cartesian"),
angle_labels = FALSE
)
angles |
Optional. A numeric vector of the angular position (in
degrees) of each circumplex scale, going counterclockwise from the right
(default = |
labels |
Optional. Either |
amax |
Optional. A single positive number giving the amplitude at the outer ring, which sets the amplitude-axis labels; the center of the circle is fixed at amplitude 0 (default = 0.5). |
font_size |
Optional. A single positive number giving the size (in pt) of the scale and amplitude labels (default = 12). |
instrument |
Optional. Either |
grid |
Optional. A single string naming the canvas furniture, passed to
|
angle_labels |
Optional. A single logical, independent of |
A ggplot2 object containing the empty circumplex canvas.
coord_circumplex(), which owns the transform this canvas is built
on; ssm_plot_circle(), which draws SSM results on this canvas.
Other circumplex layers:
coord_circumplex(),
geom_ssm_arc(),
geom_ssm_ellipse(),
geom_ssm_path(),
geom_ssm_point(),
scale_x_circumplex(),
theme_circumplex()
# A default octant canvas
ggcircumplex()
# Label the scales with their circumplex pole abbreviations
ggcircumplex(octants(), labels = PANO())
# Derive the angles and labels from a circumplex instrument
ggcircumplex(instrument = csip)
# A Cartesian grid: one rim ring and a labelled crosshair
ggcircumplex(octants(), labels = PANO(), grid = "cartesian")
# Each scale labelled with its angle, read along the radius
ggcircumplex(octants(), labels = PANO(), grid = "cartesian", angle_labels = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.