वर्ड क्लाउड बनाना
हमने बार प्लॉट देखे हैं, अब वर्ड क्लाउड के साथ word counts को विज़ुअलाइज़ करते हैं! tidy_twitter पहले से लोड, टोकनाइज़ और क्लीन किया जा चुका है.
यह अभ्यास पाठ्यक्रम का हिस्सा है
R में Text Analysis परिचय
अभ्यास निर्देश
wordcloudपैकेज लोड करें.- word counts निकालें और
word_countsको असाइन करें. word_countsके word कॉलम कोwordsआर्ग्युमेंट में असाइन करें.word_countsके count कॉलम (n) कोfreqआर्ग्युमेंट में असाइन करें.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Load the wordcloud package
___(___)
# Compute word counts and assign to word_counts
word_counts <- ___ %>%
___(___)
wordcloud(
# Assign the word column to words
___ = ___,
# Assign the count column to freq
___ = ___,
max.words = 30
)