set_shape_multilevel: Set shapes for levels of a multilevel network

Description Usage Arguments Value Author(s) Examples

View source: R/set_shape_multilevel.R

Description

Set vertices shapes for a multilevel network. Default set to "square" (higher level) and "circle" (lower level).

Usage

1
set_shape_multilevel(x, shape.true = "square", shape.false = "circle")

Arguments

x

a graph object. Must be a multilevel network.

shape.true

a character. The shape to be chosen for the higher level (attribute type set to TRUE).

shape.false

a character. The shape to be chosen for the lower level (attribute type set to FALSE).

Value

A graph object. A multilevel network with an added shape vertex attribute vector.

Author(s)

Neylson Crepalde, neylsoncrepalde@gmail.com

Examples

1
2
3
4
5
# Check whether a graph is multilevel
is_multilevel(linked_sim)

# Set the shapes for each level
linked_sim <- set_shape_multilevel(linked_sim)

neylsoncrepalde/multinets documentation built on Dec. 17, 2019, 11:46 p.m.