View source: R/plot.p_function.R
plot.see_p_function | R Documentation |
The plot()
method for the parameters::p_function ()
.
## S3 method for class 'see_p_function'
plot(
x,
colors = c("black", "#1b6ca8"),
size_point = 1.2,
size_line = c(0.7, 0.9),
size_text = 3,
line_alpha = 0.15,
show_labels = TRUE,
n_columns = NULL,
show_intercept = FALSE,
...
)
x |
An object returned by |
colors |
Character vector of length two, indicating the colors (in hex-format) used when only one parameter is plotted, resp. when panels are plotted as facets. |
size_point |
Numeric specifying size of point-geoms. |
size_line |
Numeric value specifying size of line geoms. |
size_text |
Numeric value specifying size of text labels. |
line_alpha |
Numeric value specifying alpha of lines indicating the
emphasized compatibility interval levels (see |
show_labels |
Logical. If |
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 |
show_intercept |
Logical, if |
... |
Arguments passed to or from other methods. |
A ggplot2-object.
library(parameters)
model <- lm(Sepal.Length ~ Species + Sepal.Width + Petal.Length, data = iris)
result <- p_function(model)
plot(result, n_columns = 2, show_labels = FALSE)
result <- p_function(model, keep = "Sepal.Width")
plot(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.