plot_relations {EMC2} | R Documentation |
Plot relations
Description
An adjusted version of the corrplot
package function corrplot()
tailored
to EMC2
and the plotting of estimated correlations.
Usage
plot_relations(
emc = NULL,
stage = "sample",
plot_cred = TRUE,
plot_means = TRUE,
only_cred = FALSE,
nice_names = NULL,
...
)
Arguments
emc |
An EMC2 object, commonly the output of |
stage |
Character. The stage from which to take the samples, defaults to
the sampling stage |
plot_cred |
Boolean. Whether to plot the 95 percent credible intervals or not |
plot_means |
Boolean. Whether to plot the means or not |
only_cred |
Boolean. Whether to only plot credible values |
nice_names |
Character string. Alternative names to give the parameters |
... |
Optional additional arguments |
Value
No return value, creates a plot of group-level relations
Examples
# 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)
[Package EMC2 version 2.0.2 Index]