Description Usage Arguments Details
View source: R/subset_plot_df.R
Extract subset from plot-ready list
1 | subset_plot_df(x, sub_var, sub_val, keep_edges = c("all", "within", "none"))
|
x |
list of data.tables to subset (generated by igraph_plot_prep) |
sub_var |
variable to subset on; either a logical vector or a character string |
sub_val |
value to subset on |
keep_edges |
what edges to keep |
if sub_var
is a logical vector, it has to be of the same length as the number of rows in x$vertices
. If sub_var
is a string, it has to be equal a column in x$vertices
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.