cgraph_plot_grid(
...,
nrow = NULL,
ncol = NULL,
byrow = TRUE,
widths = NULL,
heights = NULL,
spacing = NULL
)Arrange several plots in one figure
cgraph(
...,
spec = NULL,
class = c("DAG", "UG", "PDAG", "CPDAG", "MPDAG", "ADMG", "AG", "MAG", "PAG", "UNKNOWN")
)Create a causal graph
lhs %-->% rhsEdge specification operators
lhs %<->% rhsEdge specification operators
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
style_nodes(p, ..., nodes = NULL)Style the nodes, edges and labels of a plot
generate_graph(
n,
m = NULL,
p = NULL,
class = c("DAG", "CPDAG", "ADMG", "MAG", "PAG"),
latents = 0,
seed = NULL
)Generate a random graph
plot_options(...)Get or set global default plot styles
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
plot_default_options()Default plot styling options