Skip to contents

Plot a network of co-ocurrence of terms. For more options, see `net_wordcloud()`.

Usage

q_plot(graph_list, color = "lightblue")

Arguments

color

color of the edges. Default: "lightblue".

edge_df

a dataframe of co-occurrence, extracted with `extract_graph()`

Examples

library(networds)

g <- ex_txt_wiki[2:44] |>
  filter_by_query("Police") |>
  parsePOS()
#> Error: object 'ex_txt_wiki' not found
g <- get_cooc_entities(g)
#> Error in dplyr::group_by(pos, doc_id): Must group by variables found in `.data`.
#>  Column `doc_id` is not found.
q_plot(g)
#> Warning: Unknown or uninitialised column: `edges`.
#> Warning: Unknown or uninitialised column: `graphs`.
#> Error in tidygraph::as_tbl_graph(graph): No support for <NULL> objects
#> Caused by error in `UseMethod()`:
#> ! no applicable method for 'as.igraph' applied to an object of class "NULL"