Learn R Programming

DiagrammeR (version 1.0.11)

set_graph_name: Set graph name

Description

Set a name for a graph object of class dgr_graph.

Usage

set_graph_name(graph, name)

Value

A graph object of class dgr_graph.

Arguments

graph

A graph object of class dgr_graph.

name

The name to set for the graph.

Examples

Run this code
# Create an empty graph
graph <- create_graph()

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

Run the code above in your browser using DataLab