plot a graph of co-occurrence of terms, as returned by extract_graph

plot_graph(text, df, head_n = 30, color = "lightblue")

Arguments

text

an input text

df

a dataframe of co-occurrence, extracted with `extract_graph()` and `count(n1, n2)`

head_n

number of nodes to show - the more frequent