[R] WordCloud Does not display in RMD File in R Studio

Yihui Xie xie at yihui.name
Fri Jul 29 20:15:17 CEST 2016


Typically you don't need to open the png() device manually. Try
comment out that line.

BTW, I'm not sure which wordcloud package you were using, but this one
is the best one I have seen: https://github.com/Lchiffon/wordcloud2

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name


On Fri, Jul 29, 2016 at 11:53 AM, Shivi Bhatia <shivipmp82 at gmail.com> wrote:
> Dear Team,
>
> I have created a text mining solution for one of my business owners.
>
> I am sharing with his using RMD via HTML. All is working ok however the
> WordCloud does not populate any output in RMD file.
>
> Few months back when this happened on R studio i searched and used
> dev.off() to shut down any concurrent running session but this also does
> not help.
>
> Other plots that i have created such ggplot and barpplot they are being
> displayed. similarly i can show wordcloud also in R Studio but not on RMD.
>
> Not sure what i am doing wrong as i only get a message staing NULL when i
> run wordcloud.
> Plz find the code for wordcloud if that helps:
> word0<- names(frequency)
> png("p3_sa_para.png", 640, 480)
>
>
> wordcloud(word0,frequency,random.order =F,
> colors = brewer.pal(8, "Dark2"),scale = c(5.5,0.5),min.freq = 100,
> max.words = Inf)
>



More information about the R-help mailing list