View source: R/networkGraphs.R
applyCategoricalFilters | R Documentation |
This function removes vertices that are not in the selected categories values list or sub-categories.
applyCategoricalFilters( g, selected_cat, selected_subcats, cat_prefix = "vosonCA_" )
g |
igraph |
selected_cat |
Character string. Selected vertex category without prefix. |
selected_subcats |
List. Selected sub-category values to include in graph. |
cat_prefix |
Character string. Category attribute prefix format to match. Default is |
An igraph graph object.
## Not run: # return a graph containing only vertices that have the vertex category # attribute "vosonCA_Stance" value "liberal" g <- loadPackageGraph("DividedTheyBlog_40Alist_release.graphml") g <- applyCategoricalFilters(g, "Stance", c("liberal")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.