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

rmarkdown html multiple wordclouds #60

Open
AlisonCT opened this issue Mar 8, 2019 · 3 comments
Open

rmarkdown html multiple wordclouds #60

AlisonCT opened this issue Mar 8, 2019 · 3 comments

Comments

@AlisonCT
Copy link

AlisonCT commented Mar 8, 2019

I am using a wordcloud2 in an rmarkdown html_document. When I include multiple wordclouds the first one works fine but subsequent ones don't display. I can get around this by using saveWidget and webshot to include a png of the wordcloud, but this is not ideal (I like being able to hover over the wordcloud and see the counts). Do you have a solution for this?

Thank you!

@jl5000
Copy link

jl5000 commented Mar 17, 2019

#32

@maxpel
Copy link

maxpel commented Apr 3, 2020

I encountered a similiar problem: Multiple wordcloud2s still don't render in flexdashboard (except for the first one), when they are placed in tabs via Column {.tabset} like in https://rmarkdown.rstudio.com/flexdashboard/layouts.html#tabset_row

@jacciz
Copy link

jacciz commented Dec 3, 2023

I found a workaround using htmlwidgets package that allows for multiple wordclouds. I'm using quarto to render multiple and this works.

a = wordcloud2::wordcloud2(coffee)

htmlwidgets::saveWidget(widget = a,
                        file = "a.html",
                        selfcontained = TRUE)
<iframe src = "a.html" width = "1000" height = "1000"></iframe>

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

4 participants