plot_cluster: Plot Individual Cluster

Description Usage Arguments Examples

View source: R/word_network.R

Description

Plots individual clusters from the plot_word_network function. Can be helpful if these need to be plotted separately for any reason.

Usage

1
plot_cluster(network_input, cluster_number)

Arguments

network_input

The output of the plot_word_network function

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
movie_review_data1$cleanText = clean_text(movie_review_data1$text)

# Using language to predict "Positive" vs. "Negative" reviews
movie_model_valence = language_model(movie_review_data1,
                                     outcomeVariableColumnName = "valence",
                                     outcomeVariableType = "binary",
                                     textColumnName = "cleanText")

node_edge_table = node_edge(movie_model_valence)
network_output = plot_word_network(node_edge_table, clusterType="node")
plot_cluster(network_output[[1]], cluster_number=1)

## End(Not run)

nlanderson9/languagePredictR documentation built on June 10, 2021, 11 a.m.