View source: R/print_and_plot.R
coef_plot | R Documentation |
Plot path coefficients and their confidence intervals or standard errors.
coef_plot(
fitted_DAG,
error_bar = "ci",
order_by = "default",
from = NULL,
to = NULL,
reverse_order = FALSE
)
fitted_DAG |
A fitted DAG, usually obtained by |
error_bar |
Whether to use confidence intervals ( |
order_by |
By |
from |
Only show path coefficients from these nodes. Supply as a character vector. |
to |
Only show path coefficients to these nodes. Supply as a character vector. |
reverse_order |
If |
A ggplot
object.
d <- DAG(LS ~ BM, NL ~ BM, DD ~ NL + LS)
plot(d)
d_fitted <- est_DAG(d, rhino, rhino_tree, 'lambda')
plot(d_fitted)
coef_plot(d_fitted, error_bar = "se")
# to create a horizontal version, use this:
coef_plot(d_fitted, error_bar = "se", reverse_order = TRUE) + ggplot2::coord_flip()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.