Skip to main content

Module wordcloud

Module wordcloud 

Source
Expand description

Word cloud: geom_wordcloud. Words sized by weight are placed — the largest first — along an Archimedean spiral from the panel centre at the first spot where their bounding box overlaps no placed word (ggwordcloud / wordcloud2). Layout happens at draw time in pixels, since collisions depend on the rendered text size; it is deterministic (no randomness: rotations come from a hash of the word and seed). Words that don’t fit are left out.

Structs§

GeomWordcloud
Word cloud. Map label (word) and weight (frequency); optionally color.