ggwordcloud2
is meant as an approximate replacement for
wordcloud2
. It has almost the same syntax but fewer
options. In particular, there is no background image (so far...). As the
underlying algorithms are not strictly equal, the resulting wordcloud is only
similar to the ones one can obtain with wordcloud2
.
ggwordcloud2(
data,
size = 1,
color = "random-dark",
minRotation = -pi/4,
maxRotation = pi/4,
shuffle = TRUE,
rotateRatio = 0.4,
shape = "circle",
ellipticity = 0.65,
figPath = NA,
...
)
a dataframe whose two first columns are the names and the freqs or a table
scaling factor. Default to 1
color scheme either "random-dark", "random-light" or a list of color of the size of the dataframe. Default to "random-dark"
the minimal rotation angle
the maximal rotation angle
if TRUE, the words are shuffled at the beginning
the proportion of rotated words
control the shape of the cloud
control the eccentricity of the wordcloud
path to an image used a mask
the remaining parameters are passed to geom_text_wordcloud
a ggplot