Skip to contents

Take in the results of an SSM analysis function and create figure from it.

Usage

ssm_plot(.ssm_object, fontsize = 12, ...)

Arguments

.ssm_object

Required. The results output of ssm_analyze.

fontsize

Optional. A single positive number indicating the font size of text in the figure, in points (default = 12).

...

Additional arguments to pass on to the plotting function.

Value

A ggplot2 object representing the figure

See also

ggsave Function for saving plots to image files.

Other ssm functions: ssm_analyze(), ssm_append(), ssm_parameters(), ssm_score(), ssm_table()

Examples

# \donttest{
# Load example data
data("jz2017")

# Plot profile results
res <- ssm_analyze(jz2017,
  scales = PA:NO, angles = octants(),
  measures = c(NARPD, ASPD)
)
p <- ssm_plot(res)

# Plot contrast results
res <- ssm_analyze(jz2017,
  scales = PA:NO, angles = octants(),
  measures = c(NARPD, ASPD), contrast = "test"
)
p <- ssm_plot(res)
# }