cgraph_plot(
x,
layout = NULL,
main = NULL,
asp = NA,
outer_margin = grid::unit(2, "mm"),
title_gap = grid::unit(1, "lines"),
...
)Plot a causal graph
cgraph(
...,
spec = NULL,
class = c("DAG", "UG", "PDAG", "CPDAG", "MPDAG", "ADMG", "AG", "MAG", "PAG", "UNKNOWN")
)Create a causal graph
style_nodes(p, ..., nodes = NULL)Style the nodes, edges and labels of a plot
style_edges(p, ..., from = NULL, to = NULL, type = NULL)Style the nodes, edges and labels of a plot
style_labels(p, ..., nodes = NULL)Style the nodes, edges and labels of a plot
label_nodes(p, ...)Style the nodes, edges and labels of a plot
style_title(p, ...)Style the nodes, edges and labels of a plot
cgraph_layout(
x,
method = NULL,
direction = c("right", "down", "up", "left"),
seed = 1L,
...
)Compute a graph layout
plot_options(...)Get or set global default plot styles
cgraph_grob(x)Grid grob of a causal graph plot
cgraph_plot_grid(
...,
nrow = NULL,
ncol = NULL,
byrow = TRUE,
widths = NULL,
heights = NULL,
spacing = NULL
)Arrange several plots in one figure
plot_default_options()Default plot styling options