ggwordcloud icon indicating copy to clipboard operation
ggwordcloud copied to clipboard

Big words appearing on the outside?

Open JCSzamosi opened this issue 1 year ago • 2 comments

In your example plots, it appears like the larger words all appear towards the centre of the image and the smaller words are on the periphery. When I try to use this package, I'm finding the opposite: that the larger words are around the periphery and the smaller words are at the centre.

is this something I can change? I'd like to see the larger words near the centre. I've tried relevelling the label factor a few different ways, but it doesn't seem to make a difference.

JCSzamosi avatar May 25 '23 16:05 JCSzamosi

Hi, The word are plotted following their order in the data frame. The first word is positioned at the center and the others wherever they fit following a spiral. My guess is thus that if you sort your data frame with the largest frequencies first you will have what you want. Yours Erwan

Le jeu. 25 mai 2023, 18:29, JCSzamosi @.***> a écrit :

In your example plots, it appears like the larger words all appear towards the centre of the image and the smaller words are on the periphery. When I try to use this package, I'm finding the opposite: that the larger words are around the periphery and the smaller words are at the centre.

is this something I can change? I'd like to see the larger words near the centre. I've tried relevelling the label factor a few different ways, but it doesn't seem to make a difference.

— Reply to this email directly, view it on GitHub https://github.com/lepennec/ggwordcloud/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4BD2MNPPMA2OEVOW4KDFTXH6CIBANCNFSM6AAAAAAYPCXRIM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lepennec avatar May 26 '23 06:05 lepennec

This worked, thank you!

JCSzamosi avatar May 26 '23 16:05 JCSzamosi