View source: R/get_graph_name.R
get_graph_name | R Documentation |
Get the name of a graph object of class dgr_graph
.
get_graph_name(graph)
graph |
A graph object of class |
A single-length character vector with the assigned graph name. If a graph name has not been set, NA is returned.
# 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.