12.3 Visualizing Word Frequencies with Bar Charts and Word Clouds
Earlier, we obtained frequencies for a few words in Romeo and Juliet. Sometimes frequency visualizations enhance your corpus analyses. There’s often more than one way to visualize data, and sometimes one is superior to others. For example, you might be interested in word frequencies relative to one another, or you may just be interested in relative uses of words in a corpus. In this section, we’ll look at two ways to visualize word frequencies:
A bar chart that quantitatively visualizes the top 20 words in Romeo and Juliet as bars representing each word and its frequency.
A word cloud that qualitatively visualizes more frequently occurring words in bigger fonts and less frequently ...
Get Intro to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and The Cloud now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.