subset_plot_df: Extract subset from plot-ready list

Description Usage Arguments Details

View source: R/subset_plot_df.R

Description

Extract subset from plot-ready list

Usage

1
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.


baruuum/igplot documentation built on Dec. 19, 2021, 6:42 a.m.