Description Usage Arguments Value Examples
View source: R/networkGraphs.R
This function returns a list of graph vertex attribute names that match a category attribute prefix format and their unique values.
1 | getVertexCategories(g, cat_prefix = "vosonCA_")
|
g |
igraph |
cat_prefix |
Character string. Category attribute prefix format to match. Default is |
A named list of vertex category attributes and values.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# get a list of voson vertex categories and values
g <- loadPackageGraph("DividedTheyBlog_40Alist_release.graphml")
vcats <- getVertexCategories(g)
# vcats
# $Stance
# [1] "conservative" "liberal"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.