plot_fun | R Documentation |
Visualize results from model objects in bdrc, plm0, plm, gplm0, gplm
plot_fun(
x,
type = "rating_curve",
param = NULL,
transformed = FALSE,
title = NULL,
xlim = NULL,
ylim = NULL,
...
)
x |
An object of class "plm0", "plm", "gplm0" or "gplm". |
type |
A character denoting what type of plot should be drawn. Defaults to "rating_curve". Possible types are:
|
param |
A character vector with the parameters to plot. Defaults to NULL and is only used if type is "trace" or "histogram". Allowed values are the parameters given in the model summary of x as well as "hyperparameters" or "latent_parameters" for specific groups of parameters. |
transformed |
A logical value indicating whether the quantity should be plotted on a transformed scale used during the Bayesian inference. Defaults to FALSE. |
title |
A character denoting the title of the plot. Defaults to NULL, i.e. no title. |
xlim |
A numeric vector of length 2, denoting the limits on the x axis of the plot. Applicable for types "rating_curve", "rating_curve_mean", "f", "beta", "sigma_eps", "residuals". |
ylim |
A numeric vector of length 2, denoting the limits on the y axis of the plot. Applicable for types "rating_curve", "rating_curve_mean", "f", "beta", "sigma_eps", "residuals". |
Returns an object of class ggplot2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.