quanteda / quanteda.textplots

Plotting and visualisation for quanteda
GNU General Public License v3.0
6 stars 1 forks source link

Highlighting fetaures in a network #18

Open claireINRS opened 1 year ago

claireINRS commented 1 year ago

Hi, Is it possible to highligth one (or several) feature and its edges in a network, something like : textplot_network(net,...,vertex_labelsize[feat]=10) or textplot_network(net,...,toupper(vertex_labelsize[feat]) or textplot_network(net,...,vertex_labelcolor[feat]="red") and the same on edge_color (edge_color=colRes[feat]=...) ? Best regards Claire

claireINRS commented 1 year ago

I've found a solution with the source https://slcladal.github.io/rscripts/calculateCoocStatistics.R" which calculates the co-occurrences of one word. These co-occurrent words become the features of a sub-grah :)