fst_cn_plot {finnsurveytext} | R Documentation |
Plot Concept Network
Description
Creates a Concept Network plot from a list of edges and nodes (and their respective weights).
Usage
fst_cn_plot(edges, nodes, concepts, title = NULL)
Arguments
edges |
Output of ‘fst_cn_edges()', dataframe of ’edges' connecting two words. |
nodes |
Output of 'fst_cn_nodes()', dataframe of relevant lemmas and their associated pagerank. |
concepts |
List of terms which have been searched for, separated by commas. |
title |
Optional title for plot, default is 'NULL' and a generic title ("Textrank extracted keyword occurrences") will be used. |
Value
Plot of Concept Network.
Examples
con <- "kiusata, lyöminen"
cb <- conllu_cb_bullying_iso
edges <- fst_cn_edges(cb, con, pos_filter = c("NOUN", "VERB", "ADJ", "ADV"))
nodes <- fst_cn_nodes(cb, edges, c("NOUN", "VERB", "ADJ", "ADV"))
fst_cn_plot(edges = edges, nodes = nodes, concepts = con)
[Package finnsurveytext version 1.0.0 Index]