Learn R Programming

DiagrammeR (version 0.8.4)

set_node_attrs_ws: Set node attributes with a node selection

Description

From a graph object of class dgr_graph or a node data frame, set node attribute properties for nodes present in a node selection.

Usage

set_node_attrs_ws(graph, node_attr, value)

Arguments

graph
a graph object of class dgr_graph that is created using create_graph.
node_attr
the name of the attribute to set.
value
the value to be set for the chosen attribute for the nodes in the current selection.

Value

a graph object of class dgr_graph.