handle_igraph_param_list | R Documentation |
Handle igraph attribute parameter list, internal function for jam_igraph()
handle_igraph_param_list(
x,
attr,
factor_l,
i_values = NULL,
attr_type = c("node", "vertex", "edge"),
verbose = FALSE,
...
)
x |
|
attr |
|
factor_l |
|
i_values |
|
attr_type |
|
... |
additional arguments are ignored. |
This mechanism is intended to help update igraph
attributes
in bulk operations by the attribute values associated with
nodes or edges. Most commonly, the argument factor_l
is
multiplied by numeric attributes to scale attribute values,
for example label font size, or node size.
For example:
handle_igraph_param_list(x, attr="size", factor_l=list(nodeType=c(Gene=1, Set=2)), i_values=rep(1, igraph::vcount(x)), attr_type="node")
This function call will match node attribute nodeType
,
the size of nodes with attribute value
nodeType="Set"
are multiplied size * 2
,
nodeType="Gene"
are multiplied size * 1
.
vector
of attribute values representing attr
.
Other jam utility functions:
avg_angles()
,
avg_colors_by_list()
,
call_fn_ellipsis_deprecated()
,
cell_fun_bivariate()
,
collapse_mem_clusters()
,
colorRamp2D()
,
deconcat_df2()
,
display_colorRamp2D()
,
enrichList2geneHitList()
,
filter_mem_genes()
,
filter_mem_sets()
,
find_colname()
,
get_hull_data()
,
get_igraph_layout()
,
gsubs_remove()
,
isColorBlank()
,
make_legend_bivariate()
,
make_point_hull()
,
mem_find_overlap()
,
order_colors()
,
rank_mem_clusters()
,
rotate_coordinates()
,
subgraph_jam()
,
subset_mem()
,
summarize_node_spacing()
,
xyAngle()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.