问题标签 [wordcloud2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - Wordcloud2 - Click Event and Mouse pointer
I recently asked a question, rather it is possible to change the mouse to a pointer, when it hovers over the words in a wordcloud in shinyapp. The answer worked successfully.
But now, input$Wordcloud_clicked_word
won't react anymore.
(Edit: as HubertL correctly mentioned, using click event in the package of CRAN is not possible. However, installing the Version of GitHub makes it possible as noted here.
So devtools::install_github("lchiffon/wordcloud2")
is needed to make click events possible)
When I change .wcLabel
, then the verbatimTextOutput won't react anymore on clicking on a word in the cloud.
Is it possible to have both, the mouse changing to pointer on hover and reacting to clicking on a word?
Thanks!
Frederik
r - 在 R 中的 Wordcloud 中绘制句子
我想创建一个 wordcloud,其中每行根据其计数/频率显示。wordcloud 不应基于单个单词,而应基于每个句子。问题是,如果我使用 wordcloud2,它不会显示更长的句子,并且会从样本中省略 2 个这样的句子。如何查看所有句子?下面是一个类似于原始数据集的虚拟数据集:
有人可以告诉我wordcloud中是否有替代方法吗?
r - 在同一页面中渲染 highchartOutput + wordcloud2Output 时的闪亮问题
我正在寻找在我的 ui.R 中放入相同的 tabPanel :1 highchartOutput 和 1 wordcloud2Output 但只有我的 wordcloud2Output 打印。我尝试隔离我的 highchartOutput,没问题它在同一个 tabPanel 中没有 wordcloud2Output 的情况下运行。
例子:
使用 wordcloud2Output + highchartOutput 进行闪亮渲染
如果我将我的“wordcloud2Output”放在评论中,我的 highchartOutput 运行
谢谢你的帮助!
r - Wordcloud2 R:跨 rstudio、savewidget 和 webshot 保存相同的图像
我想将 Rstudio 中的 wordcloud2 视图保存为 html 和 PNG 文件。
我正在关注这篇文章中的答案,包括 wordcloud2、htmlwidgets 和 webshot 库:如何在 R 中保存 wordcloud
我面临的问题是,每个可视化在单词的位置方面都略有不同。有没有办法在保存步骤中避免这种随机性?
r - ggwordcloud:每个单词周围的巨大边框/边距
r - 如何使用反应函数在 R Shiny 中创建 DF
在完成 DataCamp 课程后,我正在尝试创建一个 wordcloud 闪亮的应用程序。在课程中,他们使用自定义create_wordcloud()
函数来制作应用程序。如果有人有它的代码,那会让我的生活更轻松。
无论如何,我正在尝试自己的方式,因为我没有自定义函数并且将使用wordcloud2()
函数。
我在使用响应式函数制作 Shiny 应用程序时遇到了麻烦。本质上,我试图让用户可以选择单词的数量并使用 UI 更改 wordcloud 中的背景。为此,我需要将用户提供的文本转换为数据框,按字数排序 df,然后将 df 子集化为用户在应用程序 UI 中选择的任何数字。
这是我的代码:
我得到的错误是:
警告:错误:输入必须是向量,而不是函数。
我真的很期待听到社区的回答并提高我的反应式编程技能!
谢谢!
r - 如何在 wordcloud2 中使用“min.freq”?
我从几篇文章中阅读了一个用于制作 wordcloud 的 excel 文件。您可以在下面找到我的代码的一部分。
我想在 wordcloud2() 中输入“min.freq”,但它没有用。
我想知道如何消除一些频率低于 2 的单词。
我想可能有办法..
任何一个..
- 在 wordcloud2 中放置一些类似的功能,例如“min.freq”
- 使用一些使用过滤器的功能来消除一些频率小于2的单词。
就像下面的代码
r - 有没有办法使用 {capture} 包将 R Shiny 应用程序的屏幕截图保存到根目录而不是下载?
我有一个闪亮的应用程序,它使用包生成 wordcloud wordcloud2
。我正在使用该capture
包来截取 wordcloud 的屏幕截图。我还尝试过其他类似的软件包,例如shinyscreenshot
和snapper
. 它们都提供了一种截取应用程序的一部分或整个应用程序的屏幕截图并下载屏幕截图的方法。但是在我的用例中,当我单击按钮而不是下载它时,我需要将图像保存到应用程序的根目录中。有没有办法这样做?
这是一个可重现的示例:
提前致谢。