inertCoordPlotTraj: Plots the bivariate state variables' model-predicted temporal...

Description Usage Arguments Value Examples

View source: R/inertCoord.R

Description

Produces sets of prototypical example plots of the state variables' predicted temporal trajectories for each latent profile obtained based on the inertia-coordination parameters. The plots are produced by using the inertia-coordination parameters to predict temporal trajectories, with random noise added at each temporal step.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
inertCoordPlotTraj(
  prepData,
  paramEst,
  n_profiles,
  dist0name = NULL,
  dist1name = NULL,
  plot_obs_name = NULL,
  minMax = NULL,
  time_length = NULL,
  numPlots = NULL,
  seed = NULL,
  printPlots = T
)

Arguments

prepData

A dataframe that was produced with the "dataPrep" function.

paramEst

A dataframe created by indivInertCoord containing the inertia-coordination parameter estimates for each dyad.

n_profiles

The number of latent profiles.

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").

minMax

An optional vector with desired minimum and maximum quantiles to be used for setting the y-axis range on the plots, e.g., minMax <- c(.1, .9) would set the y-axis limits to the 10th and 90th percentiles of the observed state variables. If not provided, the default is to use the minimum and maximum observed values of the state variables.

time_length

An optional value specifying how many time points to plot across. Default is the 75th percentile for the time variable.

numPlots

An optional value controlling how many random examples of each profile are produced. Default is 3.

seed

An optional integer argument that sets the seed of R's random number generator to create reproducible trajectories. If used, the "numPlots" can be set to one - otherwise each plot is replicated 3 times.

printPlots

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

Value

A list with the plots of predicted trajectories for each dyad.

Examples

1
# See vignettes for examples.

rties documentation built on July 2, 2020, 4:11 a.m.