View source: R/longitudinal_plot_c.R
longitudinal_plot_c | R Documentation |
Plot longitudinal random effects - dyadic reciprocity
longitudinal_plot_c(
input,
parameters,
type,
normalized = FALSE,
HPDI = 0.9,
plot = TRUE,
export_as_table = FALSE,
save_plot = NULL,
height = 6,
width = 6,
palette = NULL
)
input |
A STRAND model object, obtained by fitting a longitudinal combined stochastic block and social relations model. |
parameters |
Name of the parameter as included in the function call. E.g., ~ Age + Sex... Then: parameters=c("Age", "Age", "Sex", "Sex") |
type |
For each parameter, indicate its type: "focal", "target", or "dyadic". And, from the above: type = =c("focal", "target", "focal", "target") |
normalized |
Should effects be normalized? |
HPDI |
Highest Posterior Density Interval. Ranges in (0,1). |
plot |
Should a plot be displayed? |
export_as_table |
Should the tabular data rather than a ggplot object be returned? |
save_plot |
Should a plot be exported to working directory? If so, set save_plot="desired_filename.pdf". |
height |
Height of exported plot. |
width |
Width of exported plot. |
palette |
Override the default palette with a 3-vector of color codes. |
A figure or tabluar data to make a figure.
## Not run:
res = longitudinal_plot_c(input = fit, parameters, type)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.