lepennec / ggwordcloud

A word cloud geom for ggplot2
https://lepennec.github.io/ggwordcloud/
GNU General Public License v3.0
172 stars 8 forks source link

grouping words by a var in one single cloud? #19

Closed coelhocao closed 1 year ago

coelhocao commented 1 year ago

Hi,

Is there a way to position words grouped by a variable, but in one single cloud? Maybe a could with multiple points to gravity?

lepennec commented 1 year ago

This can be done manually by specifying an initial position (aesthetics x and y) to each word according to the group. This involves some manual tweaking as the size of each wordcloud is not known at the beginning. There is an example using only the x axis in the vignette.