View source: R/plot.parameters_model.R
plot.see_parameters_model | R Documentation |
The plot()
method for the parameters::model_parameters()
function.
## S3 method for class 'see_parameters_model'
plot(
x,
show_intercept = FALSE,
size_point = 0.8,
size_text = NA,
sort = NULL,
n_columns = NULL,
type = c("forest", "funnel"),
weight_points = TRUE,
show_labels = FALSE,
show_estimate = TRUE,
show_interval = TRUE,
show_density = FALSE,
log_scale = FALSE,
...
)
## S3 method for class '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,
...
)
x |
An object. |
show_intercept |
Logical, if |
size_point |
Numeric specifying size of point-geoms. |
size_text |
Numeric value specifying size of text labels. |
sort |
The behavior of this argument depends on the plotting contexts.
|
n_columns |
For models with multiple components (like fixed and random,
count and zero-inflated), defines the number of columns for the
panel-layout. If |
type |
Character indicating the type of plot. Only applies for model parameters from meta-analysis objects (e.g. metafor). |
weight_points |
Logical. If |
show_labels |
Logical. If |
show_estimate |
Should the point estimate of each parameter be shown?
(default: |
show_interval |
Should the compatibility interval(s) of each parameter
be shown? (default: |
show_density |
Should the compatibility density (i.e., posterior,
bootstrap, or confidence density) of each parameter be shown?
(default: |
log_scale |
Should exponentiated coefficients (e.g., odds-ratios) be
plotted on a log scale? (default: |
... |
Arguments passed to or from other methods. |
data |
The original data used to create this object. Can be a statistical model. |
component |
Character indicating which component of the model should be plotted. |
threshold_coefficient |
Numeric, threshold at which value coefficients will be displayed. |
threshold_p |
Numeric, threshold at which value p-values will be displayed. |
ci |
Logical, whether confidence intervals should be added to the plot. |
A ggplot2-object.
library(parameters)
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
result <- model_parameters(m)
result
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.