DiagrammeR (version 0.9.0)

clear_global_graph_attrs: Clear any global graph attributes that are set

Description

Clear any currently set global graph attributes for a graph object of class dgr_graph).

Usage

clear_global_graph_attrs(graph)

Arguments

graph

a graph object of class dgr_graph.

Value

a graph object of class dgr_graph.

Examples

Run this code
# NOT RUN {
# Create a new graph and set some global attributes
graph <- create_graph() %>%
  set_global_graph_attrs(
    "overlap", "true", "graph")

# Clear all global attributes that have been set
graph <- clear_global_graph_attrs(graph)

# Look at the present global graph attributes;
# since there are none, NA is returned
get_global_graph_attrs(graph)
#> [1] NA
# }

Run the code above in your browser using DataCamp Workspace