Questions tagged [wordcloud2]
64 questions
4
votes
1 answer
Is there any way to show a wordcloud2 in Rmarkdown as a PDF or Word file?
I'm trying to show a wordcloud2 wordcloud, but it only works in an html-knitted Rmd file. This works:
---
title: "Untitled"
output: html_document
---
```{r wordcloud}
library(wordcloud2)
wordcloud2(demoFreq)
```
But this does not:
---
title:…

wordsforthewise
- 13,746
- 5
- 87
- 117
3
votes
2 answers
Maximizing plots in R Shiny bs4Dash
I have looked online everywhere to no avail. I cannot seem to get these plots to maximize their heights and widths to full window size upon maximizing the boxes. It is a requirement that I use bs4Dash. I looked at this post but the provided…

FreyGeospatial
- 325
- 4
- 17
3
votes
1 answer
How to render a DT::data.table and a wordcloud2::wordcloud2 in the mainPanel of a ShinyApp?
How to render a DT::data.table and a wordcloud2::wordcloud2 in the mainPanel of a ShinyApp?
Here is a reproducible example. When I comment the wordcloud2 codes and adjust the code, the DT::data.table render normally.
# Only run examples in…

Danilo Correa
- 111
- 9
3
votes
3 answers
How to Save the wordcloud in R
Can you please help to save word cloud on my local drive as an image?, I am looking for a code/command to get it done automatically through R Programming. I have tried with saveWidget, plotly, orca but not get success.
I have used below code to…

sanjay saini
- 111
- 2
- 2
- 6
3
votes
2 answers
wordcloud2 does not display numbered colors
When I use numbered colors in wordcloud2, nothing is displayed.
library(wordcloud2)
wordcloud2(demoFreq,color='blue1')
Color names without numbers are ok. E.g. color='blue'
What am I missing?

Bartli
- 315
- 2
- 11
2
votes
1 answer
Using R to analyse pubmed articles. Trying to create wordcloud but also association with year of publication
MOST RECENT EDIT:
I have successfully created my required data frames containing pmid,year and abstract as columns from a literature search on pubmed. I then split this data frame into many separate ones by year. So I have multiple data frames…

Aidi
- 23
- 4
2
votes
1 answer
Wordcloud error in Rmarkdown: only one wordcloud shows up in html
I successfully created two wordclouds in Rmarkdown by importing two different datasets, but one wordcloud did not show up after I knit it to html. Does anyone know how to fix it?
output: html_document
knitr::opts_chunk$set(echo=FALSE,…

Stef
- 21
- 3
2
votes
1 answer
R wordcloud2 showing blank page
I'm trying to make a wordcloud with wordcloud2 from cran page (https://cran.r-project.org/web/packages/wordcloud2/vignettes/wordcloud.html) and I've downloaded it using the…

Alaleh
- 1,008
- 15
- 27
2
votes
1 answer
Comparison Cloud in wordcloud2 package in R
Is there a way to make a comparison cloud with the wordcloud2 package in R. I want a wordcloud that is colored by a categorical variable in the dataset and a legend to be created on the wordcloud. This is an example in the original wordcloud package…

realrbird
- 31
- 5
2
votes
2 answers
R wordcloud2 picture changes when exported
When I want to export a wordcloud2 picture, the wordcloud seems to be recalculated and looks very different from the one in the viewer.
How can I prevent R from creating another…

Bartli
- 315
- 2
- 11
1
vote
1 answer
Why do characters from foreign alphabets not show in my wordcloud on R?
I am trying to create a wordcloud with 'Thank You' in different languages. Somehow, some characters don't show on the plot, however.
library(ggplot2)
data("thankyou_words_small")
set.seed(42)
data("thankyou_words_small")
ggplot(
…

Siobhan
- 11
- 1
1
vote
0 answers
Wordcloud per topic for quanteda textmodel_lda in R
Is there any possibility to extract wordclouds for each topic from quanteda textmodels_lda in R?
All approaches I tried failed as I am not able to extract terms, topics and frequency from the model an put it into a wordcloud.
Thank you very much!

Mimi van Drey
- 21
- 1
1
vote
0 answers
How to put a title in a wordcloud with `wordcloud2` in R?
How to put a title in a wordcloud with wordcloud2 in R?
df <- structure(list(age = c(18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L, 18L),…

Julien
- 1,613
- 1
- 10
- 26
1
vote
1 answer
RMarkdown only showing first out of multiple plots
[EDIT] updated for much simpler, reproducible output that generates same issue.
Code below. When I knit the code, only the first wordcloud shows up. I can put either function (month, year) in the first section and the plot will show. Why are my…

AutoOffice
- 29
- 4
1
vote
1 answer
Shiny issues when rendering highchartOutput + wordcloud2Output in the same page
I'm looking for put in the same tabPanel in my ui.R : 1 highchartOutput and 1 wordcloud2Output
But only my wordcloud2Output print.
I try to isolate, my highchartOutput, no problem it's run without wordcloud2Output in the same tabPanel.
Exemple :
…

Martin RDL
- 11
- 2