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

Fit to plot area #17

Open khkk378 opened 2 years ago

khkk378 commented 2 years ago

Hi! Thanks for a very nice package. I wonder if there is a way to get the figure to fit to the plot area without adjusting max_size. There must be many applications where the number of terms and their relative sizes/lengths isn't known beforehand (in Shiny apps and so on).

khkk378 commented 2 years ago

Hi again, if this is not possible, maybe you could expose a function that returns the positions, sizes and angles for the labels? I think that would be broadly useful.

lepennec commented 2 years ago

Very Interesting suggestion. I may be able to do something like this as soon as I have the time (which is unfortunately not right now...)