Home > Software engineering >  Facet plot word proportions from 3 groups against each other in R (tidytext ggplot2)
Facet plot word proportions from 3 groups against each other in R (tidytext ggplot2)

Time:09-09

In the first chapter of Text Mining with R Silge & Robinson propose the following code to produce the plots shown in enter image description here

You might consider adding a slice_sample(n = 10000) %>% or similar in between the prep and the ggplot in case it's too slow for your taste. In my experience ggplot2 starts to get too sluggish for my taste when n > 10k; in this case the combined data has 171k points so it's real slow.

  • Related