get_lty_matrix: Change network linetype based on group/community.

View source: R/get_lty_matrix.R

get_lty_matrixR Documentation

Change network linetype based on group/community.

Description

Change network linetype based on group/community.

Usage

get_lty_matrix(data, group, inner_type = 1, outer_type = 2)

Arguments

data

The data frame used to construct the data

group

The group information defining the community of nodes (must be a list.)

inner_type

The line type of inner community edges.

outer_type

The line type of outer community edges.

Value

A matrix that define the linetype of each edge. This can be directly passed to the lty parameter in function quickNet

Examples

data("mtcars")
groups = list(`1` = seq(1,11,by=3),`2` = seq(2,11,by=3),`3` = seq(3,11,by=3))
lty = get_lty_matrix(mtcars, groups)
quickNet(mtcars, groups = groups, lty = lty)



LeiGuo0812/quickNet documentation built on May 1, 2024, 10:42 p.m.