Learn R Programming

qdap (version 1.3.5)

vertex_apply: Apply Parameter to List of Igraph Vertices/Edges

Description

vertex_apply - Uniformly apply igrph vertex plotting parameters to a list of igraph objects. edge_apply - Uniformly apply igrph edge plotting parameters to a list of igraph objects.

Usage

vertex_apply(x, ..., hold.ends = NULL)

edge_apply(x, ..., hold.ends = c("label.color"))

Arguments

x
A list of igraph objects.
...
Arguments passed igraph's V and E. See http://igraph.sourceforge.net/doc/R/plot.common.html{Drawing Graphs} for more.
hold.ends
A vector of parameters passed to ...that should not be altered for the first and last (ends) objects in the list.

Value

  • Returns a list of igraph objects.

Examples

Run this code
x <- with(DATA.SPLIT, polarity(state, person))
bg_black <- Animate(x, neutral="white")
print(bg_black)

bgb <- vertex_apply(bg_black, label.color="grey80", size=20, color="grey40")
bgb <- edge_apply(bgb, label.color="yellow")
print(bgb, bg="black", pause=.75)

Run the code above in your browser using DataLab