An adjusted version of the corrplot
package function corrplot()
tailored
to EMC2
and the plotting of estimated correlations.
plot_relations(
emc = NULL,
stage = "sample",
plot_cred = TRUE,
plot_means = TRUE,
only_cred = FALSE,
nice_names = NULL,
...
)
No return value, creates a plot of group-level relations
An EMC2 object, commonly the output of run_emc()
.
Character. The stage from which to take the samples, defaults to
the sampling stage sample
.
Boolean. Whether to plot the 95 percent credible intervals or not
Boolean. Whether to plot the means or not
Boolean. Whether to only plot credible values
Character string. Alternative names to give the parameters
Optional additional arguments
# For a given set of hierarchical model samples we can make a
# correlation matrix plot.
plot_relations(samples_LNR, only_cred = TRUE, plot_cred = TRUE)
# We can also only plot the correlations where the credible interval does not include zero
plot_relations(samples_LNR, plot_means = TRUE, only_cred = TRUE)
Run the code above in your browser using DataLab