Skip to contents

One panel per pair of variables, after Fisher, Medaglia and Jeronimus (2018). Each panel shows the distribution of within-person correlations (one per person) and of between-person correlations (one per occasion) as kernel density curves, so that distributions based on different numbers of correlations share one scale. Ticks along the baseline mark the individual within-person correlations and a vertical stem marks each mean. The two levels differ in line type (within solid, between dashed) as well as in colour, and the key reports the standard deviation of each distribution.

Usage

plot_levels(x, x_var = NULL, y_var = NULL, ...)

Arguments

x

A correlate_levels() result.

x_var, y_var

Optional: plot only pairs involving these variables.

...

Ignored.

Value

Invisibly, the summary table (one row per plotted pair).

Examples

lv <- correlate_levels(srl, id = "name", vars = c("efficacy", "effort"),
                       time = "day")
plot_levels(lv)