Plots a representation of the marginal posterior distribution of model parameters. Note this
function requires the packages ggplot2
and ggridges
to be installed.
plot_data(
x,
sp.var = "sp",
site.var = "site",
show.sp.names = FALSE,
show.site.names = FALSE,
digits = max(3, getOption("digits") - 3),
predicted = FALSE,
...
)
# S3 method for communityPGLMM
plot_bayes(x, n_samp = 1000, sort = TRUE, ...)
A communityPGLMM object fit with bayes = TRUE
.
The variable name of "species"; y-axis of the image.
The variable name of "site"; x-axis of the image.
Whether to print species names as y-axis labels.
Whether to print site names as x-axis labels.
Not used.
Whether to plot predicted values side by side with observed ones.
Further arguments to pass to or from other methods.
Number of sample from the marginal posterior to take in order to estimate the posterior density.
Whether to plot different terms in the order of their estimations. Default is 'TRUE'.
A ggplot object
The underlying plot grid object is returned but invisible. It can be saved for later uses.