Type: | Package |
Title: | Rendering Word Clouds |
Version: | 0.1.0 |
Description: | Provides a way to display word clouds in R. The word cloud is a html widget, so you can use it in interactive documents and 'shiny' applications. |
License: | MIT + file LICENSE |
Date: | 2019-08-05 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 6.1.1 |
Depends: | R (≥ 3.0.0) |
URL: | https://github.com/czxa/hwordcloud |
BugReports: | https://github.com/czxa/hwordcloud/issues |
Suggests: | knitr, rmarkdown |
VignetteBuilder: | knitr |
Imports: | htmlwidgets, wordcloud2, shiny, colourpicker |
NeedsCompilation: | no |
Packaged: | 2019-08-05 23:28:24 UTC; czx |
Author: | Zhenxing Cheng [aut, cre] |
Maintainer: | Zhenxing Cheng <czxjnu@163.com> |
Repository: | CRAN |
Date/Publication: | 2019-08-07 04:50:02 UTC |
hwordcloud: Rendering word clouds using R + Highcharts
Description
This function can create wordclouds by binding R and Highcharts.
Rendering word clouds using R + Highcharts
Usage
hwordcloud(text, size, width = "100%", height = NULL,
theme = "sandsignika", itermName = "count", title = "",
titleAlign = "center", titleSize = "20px", titleColor = "#333333",
subtitle = "", subtitleAlign = "center", subtitleSize = "",
subtitleColor = "#666666")
Arguments
text |
character vector; |
size |
numeric vector; |
width |
chart width, for example, "100%"; |
height |
chart height, for example, "400px"; |
theme |
chart theme, you can use these themes: darkgreen/darkblue/avocado/darkunica/gray/ gridlight/grid/sandsignika/sunset; |
itermName |
attribute in tooltip; |
title |
title; |
titleAlign |
title alignment, left/center/right; |
titleSize |
title size, like "20px"; |
titleColor |
title color, like "#333333"; |
subtitle |
subtitle; |
subtitleAlign |
subtitle alignment, left/center/right; |
subtitleSize |
subtitle size, like "16px"; |
subtitleColor |
subtitle color, like "#666666" |
hwordcloud
Rendering word clouds using R + Highcharts
Examples
library(hwordcloud)
library(wordcloud2)
df <- head(demoFreq, 50)
if(interactive()){
hwordcloud(text = df$word, size = df$freq)
}
Shiny bindings for hwordcloud
Description
Output and render functions for using hwordcloud within Shiny applications and interactive Rmd documents.
Usage
hwordcloudOutput(outputId, width = "100%", height = "400px")
renderHwordcloud(expr, env = parent.frame(), quoted = FALSE)
Arguments
outputId |
output variable to read from |
width , height |
Must be a valid CSS unit (like |
expr |
An expression that generates a hwordcloud |
env |
The environment in which to evaluate |
quoted |
Is |