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.
Usage
ggcircumplex(
angles = octants(),
labels = NULL,
amax = 0.5,
font_size = 12,
instrument = NULL
)Arguments
- angles
Optional. A numeric vector of the angular position (in degrees) of each circumplex scale, going counterclockwise from the right (default =
octants()). Ignored ifinstrumentis supplied.- labels
Optional. Either
NULLor a character vector of text labels to draw around the circle, one per angle and in the same order (default =NULL, which draws the numeric angles). Ifinstrumentis supplied,NULLuses the instrument's scale abbreviations.- 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
NULLor acircumplex_instrumentobject (seeinstrument()). When supplied, the scaleanglesand (unlesslabelsis given) the scale abbreviations are taken from the instrument (default =NULL).
See also
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_path(),
geom_ssm_point(),
scale_x_circumplex(),
theme_circumplex()



