Plots the a tbl_graph object containing ngram counts as a network.

viz_ngram(tbl_graph, emphasis = TRUE)

Arguments

tbl_graph

A tbl_graph object with tibbles for term and ngram frequency.

emphasis

Whether to emphasise frequent terms and n-grams in the network.

Value

Network in the plots window.

Examples

counts <- count_ngram(
 sprinklr_export,
 text_var = Message,
 n = 2,
 top_n = 50
 )
 
viz_ngram(tbl_graph = counts$viz, emphasis = TRUE)