A ggplot2 layer that places a point for each profile at its amplitude
and displacement on a circumplex canvas built with coord_circumplex() (for
example the canvas from ggcircumplex()). The amplitude and displacement are
supplied directly in SSM units (amplitude in the score metric, displacement
in degrees); the coordinate system performs the polar transform.
Usage
geom_ssm_point(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
amax = NULL,
na.rm = TRUE,
show.legend = NA,
inherit.aes = TRUE
)Arguments
- mapping, data, stat, position, show.legend, inherit.aes, ...
Standard ggplot2 layer arguments.
mappingmust supply theamplitudeanddisplacementaesthetics.- amax
(Deprecated) The amplitude represented by the outer ring is now owned by
coord_circumplex(); a value supplied here is ignored with a one-time note.- na.rm
If
FALSE, warn (with the dropped-row count) before removing profiles with a missing displacement or amplitude, since they have no location on the circle; ifTRUE(the default) remove them silently.
See also
Other circumplex layers:
coord_circumplex(),
geom_ssm_arc(),
geom_ssm_path(),
ggcircumplex(),
scale_x_circumplex(),
theme_circumplex()
Examples
data("jz2017")
res <- ssm_analyze(jz2017, scales = 2:9, measures = "NARPD")
ggcircumplex(octants(), amax = 0.5) +
geom_ssm_point(
data = res$results,
mapping = ggplot2::aes(amplitude = a_est, displacement = d_est)
)
