plotDataByProfile: Plots of de-trended observed variable over time, with dyads...

View source: R/rtiesShared.R

plotDataByProfileR Documentation

Plots of de-trended observed variable over time, with dyads separated into groups based on LPA profile membership.

Description

Plots of de-trended observed variable over time, with dyads separated into groups based on LPA profile membership.

Usage

plotDataByProfile(
  prepData,
  fullData,
  n_profiles,
  dist0name = NULL,
  dist1name = NULL,
  plot_obs_name = NULL,
  printPlots = T
)

Arguments

prepData

A dataframe created by the dataPrep function.

fullData

A dataframe created by the makeFullData function.

n_profiles

The number of profiles that were estimated.

dist0name

An optional name for the level-0 of the distinguishing variable (e.g., "Women"). Default is dist0.

dist1name

An optional name for the level-1 of the distinguishing variable (e.g., "Men"). Default is dist1.

plot_obs_name

An optional name for the observed state variable to appear on plots (e.g., "Emotional Experience").

printPlots

If true (the default) plots are displayed on the screen.

Value

A list of plots.

Examples

# See vignettes for examples.

ebmtnprof/rties documentation built on Aug. 25, 2022, 7:47 p.m.