textCloud | R Documentation |
Study the distribution of a target variable vs another variable. This function is quite similar to the funModeling's corrplot function.
textCloud(
text,
lang = "english",
exclude = NULL,
seed = 0,
keep_spaces = FALSE,
min = 2,
pal = NA,
print = TRUE
)
text |
Character vector |
lang |
Character. Language in text (used for stop words) |
exclude |
Character vector. Which word do you wish to exclude? |
seed |
Numeric. Seed for re-producible plots |
keep_spaces |
Boolean. If you wish to keep spaces in each line to keep unique compount words, separated with spaces, set to TRUE. For example, 'LA ALAMEDA' will be set as 'LA_ALAMEDA' and treated as a single word. |
min |
Integer. Words with less frequency will not be plotted |
pal |
Character vector. Which colours do you wish to use |
print |
Boolean. Plot results as textcloud? |
wordcloud plot object
Other Text Mining:
cleanText()
,
ngrams()
,
remove_stopwords()
,
replaceall()
,
sentimentBreakdown()
,
textFeats()
,
textTokenizer()
,
topics_rake()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.