wordcloud2

Is there any way to show a wordcloud2 in Rmarkdown as a PDF or Word file?

别等时光非礼了梦想. 提交于 2019-12-30 07:22:13
问题 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: "Untitled" output: pdf_document --- ```{r wordcloud} library(wordcloud2) wordcloud2(demoFreq) ``` It will knit with always_allow_html: yes in the YAML, but the wordcloud doesn't show up: --- title: "Untitled" output: pdf_document always_allow_html: yes --

Downloading wordcloud2 output as png/jpg on shiny

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 06:19:35
问题 I am trying to download output from wordcloud2 on shiny. My code is as below: library(shiny) library(htmlwidgets) library(webshot) ui <- shinyUI(fluidPage(mainPanel( wordcloud2Output("wordcl"), downloadButton(outputId = "savecloud"), downloadButton(outputId = "savecloud2") ))) server <- shinyServer(function(input, output, session) { wordcl <- reactive ({ wordcloud2(demoFreq, color = "random-light", backgroundColor = "grey") }) output$wordcl <- renderWordcloud2({ wordcl() }) ##### SOLUTION 1 #

How to Save the wordcloud in R [duplicate]

╄→尐↘猪︶ㄣ 提交于 2019-12-08 11:35:35
问题 This question already has an answer here : Is there any way to show a wordcloud2 in Rmarkdown as a PDF or Word file? (1 answer) Closed 8 months ago . 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 create the word cloud. library(wordcloud2) wordcloud2(demoFreqC, figPath = figPath,color =

Downloading wordcloud2 output as png/jpg on shiny

我是研究僧i 提交于 2019-12-02 10:45:56
I am trying to download output from wordcloud2 on shiny. My code is as below: library(shiny) library(htmlwidgets) library(webshot) ui <- shinyUI(fluidPage(mainPanel( wordcloud2Output("wordcl"), downloadButton(outputId = "savecloud"), downloadButton(outputId = "savecloud2") ))) server <- shinyServer(function(input, output, session) { wordcl <- reactive ({ wordcloud2(demoFreq, color = "random-light", backgroundColor = "grey") }) output$wordcl <- renderWordcloud2({ wordcl() }) ##### SOLUTION 1 ######### output$savecloud <- downloadHandler( filename = "word.png", content = function(cloud) { file