Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameters to textplot_wordcloud to control padding #17

Open
enzedonline opened this issue Apr 15, 2022 · 0 comments
Open

Add parameters to textplot_wordcloud to control padding #17

enzedonline opened this issue Apr 15, 2022 · 0 comments

Comments

@enzedonline
Copy link

Requested feature

Padding (i.e. the whitespace surrounding the plot) is currently quite large:

image

The margins parameter for me was a bit confusing until I realised it was referring to variable margins rather than plot margins. I tried to control it using par and adding a ggplot theme layer to set margins to zero, neither of these have an effect.

A simple padding = c(t, r, b, l) would be great to control the amount of whitespace surrounding the plot, or by other method.

Code for the above example:

textplot_wordcloud(dfmat_ns, max_words = 400, random_order = F, 
                   fixed_aspect=F, rotation = 0, 
                   color = brewer.pal(9, 'Set1'), random_color = T,
                   )

@kbenoit kbenoit transferred this issue from quanteda/quanteda Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant