Take in the results of a Structural Summary Method analysis and plot the point and interval estimate for each row (e.g., group or measure) in a circular space quantified by displacement and amplitude.
Usage
ssm_plot_circle(
ssm_object,
amax = NULL,
legend_font_size = 12,
scale_font_size = 12,
drop_lowfit = FALSE,
repel = FALSE,
angle_labels = NULL,
palette = "Set2",
vary_shapes = FALSE,
path = FALSE,
...
)Arguments
- ssm_object
Required. The output of
ssm_analyze().- amax
A positive real number corresponding to the radius of the circle. It is used to scale the amplitude values and will determine which amplitude labels are drawn.
- legend_font_size
A positive real number corresponding to the size (in pt) of the text labels in the legend (default = 12).
- scale_font_size
A positive real number corresponding to the size (in pt) of the text labels for the amplitude and displacement scales (default = 12).
- drop_lowfit
A logical determining whether profiles with low model fit (<.70) should be omitted or plotted with dashed borders (default = FALSE).
- repel
A logical determining whether each profile is labelled with a repelled text label (placed on the circumplex canvas by
coord_circumplex(), so labels avoid overlapping each other and the points) instead of distinguished by colour and a legend (default = FALSE). Requires the ggrepel package.- angle_labels
A character vector specifying text labels to plot around the circle for each scale. Can also specify NULL to default to numerical angle labels or a vector of empty strings ("") to hide the labels. If not NULL, must have the same length and ordering as the
anglesargument tossm_analyze(). (default = NULL)- palette
A string corresponding to the palette to be used from ColorBrewer for the color and fill aesthetics. If set to NULL, all points will appear blue and no legend will be there (useful for showing the coverage of a high number of variables).
- vary_shapes
A logical determining whether profiles should each get their own shape or vary only by fill color. This only works when the number of profiles is five or less. (default = FALSE)
- path
A logical determining whether each series' movement across occasions is drawn as an arrowed path on the circle (default =
FALSE). Requires an SSM object with occasions, fromssm_analyze()with theoccasionsargument or fromssm_analyze_long(); supplyingTRUEfor any other object is an error. Occasions are connected in the order they were supplied, never alphabetically, and the path is drawn the short way across the 0/360 boundary. An occasion whose displacement is undefined (a flat or zero-amplitude profile) breaks the path rather than being interpolated through. Seegeom_ssm_path()for the underlying layer.- ...
Not used. Supplying an unrecognized argument produces a warning.
See also
Other visualization functions:
plot.circumplex_ci_accuracy(),
ssm_plot_contrast(),
ssm_plot_curve(),
ssm_plot_trajectory()
Examples
# \donttest{
data("jz2017")
res <- ssm_analyze(
jz2017,
scales = 2:9,
measures = c("NARPD", "ASPD")
)
ssm_plot_circle(res)
# }
