Learn R Programming

sgraph (version 1.1.0)

add_node_hidden: Modify the node visibility of a sgraph object.

Description

Modify the node hidden attribute of an existing sgraph object. The sgraph R package extends the sigma.js library to enable hidden nodes that will appear upon clicking on their parent group.

Usage

add_node_hidden(sigma_obj, hidden_attr)

Value

sgraph object with modified node hidden atribute

Arguments

sigma_obj

sgraph object, returned by sigma_from_igraph function

hidden_attr

Attribute to use to set node hidden value