set_graph_name: Set graph name

View source: R/set_graph_name.R

set_graph_nameR Documentation

Set graph name

Description

Set a name for a graph object of class dgr_graph.

Usage

set_graph_name(graph, name)

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

# 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 June 22, 2024, 11:21 a.m.