setDirectedGraphTheme {causact}R Documentation

Set DiagrammeR defaults for graphical models

Description

setDirectedGraph returns a graph with good defaults.

Usage

setDirectedGraphTheme(dgrGraph)

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

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

[Package causact version 0.4.0 Index]