apply_graph_theme: Apply multiple DiagrammeR global graph attributes

Description Usage Arguments Value Examples

View source: R/apply_graph_theme.R

Description

Apply multiple DiagrammeR global graph attributes

Usage

1

Arguments

dctGraph

The DiagrammeR::DiagrammeR graph to apply the attributes to.

...

One or more character vectors of length three, where the first element is the attribute, the second the value, and the third, the attribute type (graph, node, or edge).

Value

The DiagrammeR::DiagrammeR graph.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
exampleSpec <-
  system.file("inst",
              "extdata",
              "example_dct_spec_1.dct",
              package="psyverse");
parsedSpecs <- load_dct_specs(exampleSpec);
dctGraph <- parsedSpecs$output$basic_graph;
dctGraph <- apply_graph_theme(dctGraph,
                              c("color", "#0000AA", "node"),
                              c("fillcolor", "#00FFFF", "node"));

psyverse documentation built on March 26, 2020, 5:44 p.m.