setDirectedGraphTheme: Set DiagrammeR defaults for graphical models

Description Usage Arguments Value Examples

View source: R/setWorkflowDefaults.R

Description

setDirectedGraph returns a graph with good defaults.

Usage

1

Arguments

dgrGraph

A DiagrammeR graph

Value

An updated version of dgrGraph with good defaults for graphical models.

return a dgrGraph object with the color and shape defaults used by the causact package.

Examples

1
2
3
library(DiagrammeR)
create_graph() %>% add_node() %>% render_graph()  # default DiagrammeR aesthetics
create_graph() %>% add_node() %>% setDirectedGraphTheme() %>% render_graph() ## causact aesthetics

causact documentation built on Jan. 26, 2021, 1:07 a.m.