The plot()
method for the parameters::model_parameters()
function.
# S3 method for see_parameters_model
plot(
x,
show_intercept = FALSE,
size_point = 0.8,
size_text = NULL,
sort = NULL,
n_columns = NULL,
type = c("forest", "funnel"),
weight_points = TRUE,
...
)# S3 method for see_parameters_sem
plot(
x,
data = NULL,
component = c("regression", "correlation", "loading"),
type = component,
threshold_coefficient = NULL,
threshold_p = NULL,
ci = TRUE,
size_point = 22,
...
)
An object.
Logical, if TRUE
, the intercept-parameter is included
in the plot. By default, it is hidden because in many cases the intercept-parameter
has a posterior distribution on a very different location, so density curves of
posterior distributions for other parameters are hardly visible.
Size of point-geoms.
Size of text labels.
If NULL
, coefficients are plotted in the order as they appear in the summary. Use sort = "ascending"
(or sort = TRUE
)) resp. sort = "descending"
to sort coefficients in ascending or descending order.
Sort pie-slices by posterior probability (descending)?
For models with multiple components (like fixed and random,
count and zero-inflated), defines the number of columns for the
panel-layout. If NULL
, a single, integrated plot is shown.
Indicating the type of plot. Only applies for model parameters from meta-analysis objects (e.g. metafor).
Logical, if TRUE
, for meta-analysis objects, point size will be adjusted according to the study-weights.
Arguments passed to or from other methods.
The original data used to create this object. Can be a statistical model or such.
Indicate which component of the model should be plotted.
Numeric, threshold at which value coefficients will be displayed.
Numeric, threshold at which value p-values will be displayed.
Logical, whether confidence intervals should be added to the plot.#'
A ggplot2-object.
# NOT RUN {
library(parameters)
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- model_parameters(m)
result
plot(result)
# }
Run the code above in your browser using DataLab