Extract subset from plot-ready list

subset_plot_df(x, sub_var, sub_val, keep_edges = c("all", "within", "none"))

Arguments

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

Details

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.