Closed GabriellaS-K closed 4 years ago
My favorite way to do this now is using the tidylo package. You can check out the vignette, and also this blog post. For example, check out this plot comparing four groups:
This does look at log odds, rather than word frequencies, but it is pretty nice.
Oh, wonderful. I will look at this! Thank you so much
Hi,
I was wondering if there is a way to compare word frequencies 3 ways? In your book, section 1.5 there is a walkthrough to calculate the frequency for each word for the works of Jane Austen, the Brontë sisters, and H.G. Wells by binding the data frames together. When gathered at the end, it compares Jane to Brontë and Jane to Wells, and proceeds to do the plot like this. Is there a way to compare Jane to Brontë and Jane to Wells and Brontë to Wells? Finishing with 3 plots together rather than two?
Pasted your code from the book below. Thanks for such an amazing resource!
Now let’s plot (Figure 1.3).