plotRaw {rties} | R Documentation |
Plots of observed variable over time by dyad.
Description
Produces plots of the observed variable for each dyad over time to check for data errors, etc.
Usage
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
data <- rties_ExampleDataShort
plotRaw(basedata=data, dyad="couple", obs_name="dial", dist_name="female", time_name="time")