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

get_graph_name

Get graph name


Description

Get the name of a graph object of class dgr_graph.

Usage

get_graph_name(graph)

Arguments

graph

A graph object of class dgr_graph.

Value

A single-length character vector with the assigned graph name. If a graph name has not been set, NA is returned.

Examples

# Create an empty graph
graph <- create_graph()

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

# Get the graph's name
graph %>% get_graph_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.