ggwordcloud provides a word cloud text geom for ggplot2. The
placement algorithm implemented in C++ is an hybrid between the one of
wordcloud and the one of wordcloud2.js. The cloud can grow according
to a shape and stay within a mask. The size aesthetic is used either to
control the font size or the printed area of the words. ggwordcloud
also supports arbitrary text rotation. The faceting scheme of ggplot2
can also be used. Two functions meant to be the equivalent of
wordcloud and wordcloud2 are proposed. Last but not least you can
use gridtext markdown/html syntax in the labels.
Installation
You can install the released version of ggwordcloud from
CRAN with:
install.packages("ggwordcloud")
or the development version from the github repository
devtools::install_github("lepennec/ggwordcloud")
Please check the latest development version before submitting an issue.
Some word clouds
Because sometimes, pictures are better than a thousand words…
ggwordcloud
ggwordcloudprovides a word cloud text geom forggplot2. The placement algorithm implemented in C++ is an hybrid between the one ofwordcloudand the one ofwordcloud2.js. The cloud can grow according to a shape and stay within a mask. The size aesthetic is used either to control the font size or the printed area of the words.ggwordcloudalso supports arbitrary text rotation. The faceting scheme ofggplot2can also be used. Two functions meant to be the equivalent ofwordcloudandwordcloud2are proposed. Last but not least you can usegridtextmarkdown/html syntax in the labels.Installation
You can install the released version of ggwordcloud from CRAN with:
or the development version from the github repository
Please check the latest development version before submitting an issue.
Some word clouds
Because sometimes, pictures are better than a thousand words…
More examples are available in the vignette.