vis.net.format.att {NetExplorer}R Documentation

specifies shapes according to a column in a data frame

Description

specifies shapes according to a column in a data frame

Usage

vis.net.format.att(
  df,
  col.id = NULL,
  col.size = NULL,
  color = NULL,
  col.color = NULL,
  shapes = NULL,
  col.shape = NULL,
  strokeCol = NULL,
  col.strokeCol = NULL,
  col.stroke = NULL,
  node.opacity = NULL
)

Arguments

df

a data frame with node information.

col.id

a character or numeric vector indicating the column name or index of node Ids.

col.size

a character or numeric vector indicating the column name or index of node size.

color

a vector character of length two indicating the range of color for node color.

col.color

a character or numeric vector indicating the column name or index of node color.

shapes

a character vector indicating the type of shape per category. 7 shapes are available: "circle", "cross", "diamond", "rectangle, "star", "triangle", "y"

col.shape

a character or numeric vector indicating the column name or index of node shape.

strokeCol

a vector character of length two indicating the range of color for node stroke color.

col.strokeCol

a character or numeric vector indicating the column name or index of node stroke color.

col.stroke

a character or numeric vector indicating the column name or index of node stroke.

node.opacity

a character or numeric vector indicating the column name or index of node opacity.

Details

format a data frame with informations relative to vis.net function.

Value

a data frame.


[Package NetExplorer version 0.0.2 Index]