View source: R/get_lty_matrix.R
get_lty_matrix | R Documentation |
Change network linetype based on group/community.
get_lty_matrix(data, group, inner_type = 1, outer_type = 2)
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. |
A matrix that define the linetype of each edge. This can be directly passed to the lty
parameter in function quickNet
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.