set_graph_name: Set graph name

Description Usage Arguments Value Examples

View source: R/set_graph_name.R

Description

Set a name for a graph object of class dgr_graph.

Usage

1

Arguments

graph

a graph object of class dgr_graph.

name

the name to set for the graph.

Value

a graph object of class dgr_graph.

Examples

1
2
3
4
5
6
7
# Create an empty graph
graph <- create_graph()

# Provide the new graph with a name
graph <-
  graph %>%
  set_graph_name(name = "example_name")

DiagrammeR documentation built on Sept. 7, 2017, 1:06 a.m.