plot_group_wlos_network: Network plot of a grouping variable's Top Terms by WLOS

View source: R/plot_group_wlos_network.R

plot_group_wlos_networkR Documentation

Network plot of a grouping variable's Top Terms by WLOS

Description

Similar to plot_group_terms_network but filtered by WLOs rather than by frequency.

Usage

plot_group_wlos_network(
  data,
  group_var = brand,
  text_var = message,
  n_terms = 20,
  top_frequency_terms = 1500,
  with_ties = FALSE
)

Arguments

data

Data Frame or Tibble object

group_var

The variable you wish to group by - e.g. sentimnet, brand, entity

text_var

The text variable

n_terms

Number of terms to allow in plot

top_frequency_terms
with_ties

Whether to allow for ties or not (possibly selecting more than n_terms)

Value

A network visualisation

Examples

## Not run: 
Example:
df %>%
    plot_group_wlos_network(
    group_var = sentiment,
    text_var = mention_content,
    n_terms = 20,
    with_ties = FALSE)

## End(Not run)

jpcompartir/JPackage documentation built on March 20, 2023, 4 a.m.