powered by
Set vertices shapes for a multilevel network. Default set to "square" (higher level) and "circle" (lower level).
set_shape_multilevel(x, shape.true = "square", shape.false = "circle")
a graph object. Must be a multilevel network.
a character. The shape to be chosen for the higher level (attribute type set to TRUE).
type
TRUE
a character. The shape to be chosen for the lower level (attribute type set to FALSE).
FALSE
A graph object. A multilevel network with an added shape vertex attribute vector.
shape
# NOT RUN { # Check whether a graph is multilevel is_multilevel(linked_sim) # Set the shapes for each level linked_sim <- set_shape_multilevel(linked_sim) # }
Run the code above in your browser using DataLab