将绘图图像导出到Excel

时间:2017-05-09 19:50:06

标签: excel image plot copy

下午好的R用户。我有一个围绕我的情节的问题。

是否有方法将绘图作为图像复制到Excel文档?我已经在我的图中构建了一个wordcloud,导出到一个已经内置的单独的.png文件,但是我想将我的wordcloud直接复制到我的最终excel文档中。我导出各种单词的代码如下:

temp <- inspect(tdm_quadgram)
freqmat <- data.frame(Quadgram=rownames(temp),Word_Count=rowSums(temp))
row.names(freqmat) <- NULL
freqmat <- freqmat[order(-temp),]
write.xlsx(freqmat, file = output_file, sheetName = "QuadraGrams", 
           row.names = F, append = T)

是否有类似的方法将图像“写入”单独的Excel选项卡?

谢谢!

0 个答案:

没有答案