v_wordcloud | R Documentation |
Create a Wordcloud
v_wordcloud(
vc,
mapping = NULL,
data = NULL,
name = NULL,
...,
serie_id = NULL,
data_id = NULL
)
vc |
A chart initialized with |
mapping |
Default list of aesthetic mappings to use for chart. |
data |
Default dataset to use for chart. If not already
a |
name |
Name for the serie, only used for single serie (no |
... |
Additional parameters for the serie. |
data_id , serie_id |
ID for the data/serie, can be used to further customize the chart with |
A vchart()
htmlwidget
object.
library(vchartr)
vchart(top_cran_downloads) %>%
v_wordcloud(aes(word = package, count = count))
vchart(top_cran_downloads) %>%
v_wordcloud(aes(word = package, count = count, color = package))
vchart(top_cran_downloads) %>%
v_wordcloud(
aes(word = package, count = count, color = package),
wordCloudConfig = list(
zoomToFit = list(
enlarge = TRUE,
fontSizeLimitMax = 30
)
)
)
# Use an image to shape the wordcloud
vchart(top_cran_downloads) %>%
v_wordcloud(
aes(word = package, count = count, color = package),
maskShape = "https://jeroen.github.io/images/Rlogo.png"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.