comparison.cloud: Plot a cloud comparing the frequencies of words across...

Description Usage Arguments

View source: R/WordCloud.R

Description

Plot a cloud comparing the frequencies of words across documents.

Usage

1
2
3
4
comparison.cloud(term.matrix, scale = c(4, 0.5), max.words = 300,
  random.order = FALSE, rot.per = 0.1,
  colors = RColorBrewer::brewer.pal(6, "Dark2"), use.r.layout = FALSE,
  title.size = 3, ...)

Arguments

term.matrix

A term frequency matrix whose rows represent words and whose columns represent documents.

scale

A vector of length 2 indicating the range of the size of the words.

max.words

Maximum number of words to be plotted. least frequent terms dropped

random.order

plot words in random order. If false, they will be plotted in decreasing frequency

rot.per

proportion words with 90 degree rotation

colors

color words from least to most frequent

use.r.layout

if false, then c++ code is used for collision detection, otherwise R is used

title.size

Size of document titles

...

Additional parameters to be passed to text (and strheight, strwidth).


srvanderplas/nppd documentation built on May 30, 2019, 8:42 a.m.