Builds an undirected graph from co-occurrence edge data and renders it with
ggraph. Edge width and transparency scale with co-occurrence weight.
Nodes are labelled with repelled text to avoid overlap.
Arguments
- cooc_data
A
data.table(or data.frame) with columnsfrom,to, andweightrepresenting pairwise skill co-occurrences.- profession
Optional character string. When supplied, the graph is drawn with this profession name as plot title.
- layout
Character, graph layout algorithm passed to
ggraph::ggraph(). Default"fr"(Fruchterman-Reingold).