plot_kols: Plot a KOL team in a network

View source: R/plot_kols.R

plot_kolsR Documentation

Plot a KOL team in a network

Description

Plot a KOL team in a network

Usage

plot_kols(
  KOL,
  team = 1,
  kol = "red",
  reachable = "green",
  attribute = TRUE,
  ...
)

Arguments

KOL

a KOL object generated by pick_kols()

team

numeric: number of team in KOL to plot

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 igraph plot function

Value

an igraph plot

Examples

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)

KOLaide documentation built on June 8, 2025, 1:16 p.m.