style_nodes(p, ..., nodes = NULL)Style the nodes, edges and labels of a plot
style_labels(p, ..., nodes = NULL)Style the nodes, edges and labels of a plot
style_title(p, ...)Style the nodes, edges and labels of a plot
label_nodes(p, ...)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
cgraph(
...,
spec = NULL,
class = c("DAG", "UG", "PDAG", "CPDAG", "MPDAG", "ADMG", "AG", "MAG", "PAG", "UNKNOWN")
)Create a causal graph
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
parents(cg, node)Node-set queries
plot_options(...)Get or set global default plot styles
adjustment_set(
cg,
x,
y,
type = c("optimal", "parents", "backdoor"),
include = character(),
restrict = NULL
)Find an adjustment set
edges(cg)Get all edges in a graph
cgraph_grob(x)Grid grob of a causal graph plot
cgraph_layout(
x,
method = NULL,
direction = c("right", "down", "up", "left"),
seed = 1L,
...
)Compute a graph layout
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