plot_kols | R Documentation |
Plot a KOL team in a network
plot_kols(
KOL,
team = 1,
kol = "red",
reachable = "green",
attribute = TRUE,
...
)
KOL |
a KOL object generated by |
team |
numeric: number of team in |
kol |
color to mark KOLs |
reachable |
color to mark nodes reachable by KOLs |
attribute |
boolean: if a node attribute was used to measure KOL team diversity, should nodes be colored accordingly |
... |
arguments passed to |
an igraph plot
network <- igraph::sample_smallworld(1,26,2,.2) #An example network
teams <- pick_kols(network, m = 2) #Find KOL teams
plot_kols(teams,
vertex.label = NA,
vertex.frame.width = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.