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
# Create an empty graph
graph <- create_graph()

# Provide the new graph with a name
graph <- set_graph_name(graph, "example_name")

DiagrammeR documentation built on May 30, 2017, 1:15 a.m.

Search within the DiagrammeR package
Search all R packages, documentation and source code