Tag clouds are good tools to analyze text. They quickly give a good idea of which topics are being approached by an article or a post.
Open the folder containing the code for this recipe.
The following are the steps required to build a tag cloud:
- The first step, which we won't be explaining in this recipe, is to parse a text and get data of how frequently each word occurs. You will probably want to only use the top 50 words and remove propositions and only use nouns.
- Create the data structure for this visualization. In this case it is simply a pairing of a label and occurrences (a count of how many times ...