Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_graph_name

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

Graph/Network Visualization

v1.0.6.1
MIT + file LICENSE
Authors
Richard Iannone [aut, cre] (<https://orcid.org/0000-0003-3925-190X>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.