plotRaw: Plots of observed variable over time by dyad.

Description Usage Arguments Value Examples

View source: R/rtiesShared.R

Description

Produces plots of the observed variable for each dyad over time to check for data errors, etc.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plotRaw(
  basedata,
  dyadId,
  obs_name,
  dist_name,
  time_name,
  dist0name = NULL,
  dist1name = NULL,
  plot_obs_name = NULL,
  printPlots = T
)

Arguments

basedata

A user provided dataframe.

dyadId

The name of the column in the dataframe that has the dyad-level identifier.

obs_name

The name of the column in the dataframe that has the time-varying observable (e.g., the variable for which dynamics will be assessed).

dist_name

The name of the column in the dataframe that has a variable that distinguishes the partners (e.g., sex, mother/daughter, etc) that is numeric and scored 0/1.

time_name

The name of the column in the dataframe that indicates sequential temporal observations.

dist0name

An optional name for the level-0 of the distinguishing variable to appear on plots (e.g., "Women").

dist1name

An optional name for the level-1 of the distinguishing variable to appear on plots (e.g., "Men").

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

1
2
data <- rties_ExampleDataShort
plotRaw(basedata=data, dyad="couple", obs_name="dial", dist_name="female", time_name="time")

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