clear_global_graph_attrs {DiagrammeR} | R Documentation |
Clear any currently set global graph
attributes for a graph object of class
dgr_graph
).
clear_global_graph_attrs(graph)
graph |
a graph object of class
|
a graph object of class dgr_graph
.
# 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