Plots a tbl_graph object containing pairwise correlations as a network.

viz_corr(tbl_graph)

Arguments

tbl_graph

A tbl_graph object with tibbles for nodes and edges.

Value

Network visualisation.

Examples

# Generate correlations
corrs <- calculate_corr(
  sprinklr_export,
  text_var = Message,
  terms = c("#hispanic"),
  min_freq = 20,
  corr_limits = c(0, 1),
  n_corr = 50,
  hashtags = TRUE
)

# Visualise the network
viz_corr(tbl_graph = corrs$viz)
#> Warning: There were 2 warnings in `dplyr::summarise()`.
#> The first warning was:
#>  In argument: `min = min(term_freq)`.
#> Caused by warning in `min()`:
#> ! no non-missing arguments to min; returning Inf
#>  Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning.
#> Warning: There were 2 warnings in `dplyr::summarise()`.
#> The first warning was:
#>  In argument: `min = min(correlation)`.
#> Caused by warning in `min()`:
#> ! no non-missing arguments to min; returning Inf
#>  Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning.