plotWordCloud: PubMed wordcloud using function 'wordcloud' of package...

Description Usage Arguments Details Examples

Description

PubMed wordcloud.

Usage

1
2
3
plotWordCloud(abs, scale = c(3, 0.3), min.freq = 1, max.words = 100,
  random.order = FALSE, rot.per = 0.35, use.r.layout = FALSE,
  colors = brewer.pal(8, "Dark2"))

Arguments

abs

output of cleanAbstracts, or a data frame with one colume of 'word' and one colume of 'freq'.

scale

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

min.freq

words with frequency below min.freq will not be plotted

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

use.r.layout

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

colors

color words from least to most frequent

Details

This function just call 'wordcloud' from package wordcloud. See package wordcloud for more details about the parameters.

Examples

1
2
3
# text="Jobs received a number of honors and public recognition." 
# cleanD=cleanAbstracts(text)
# plotWordCloud(cleanD,min.freq=1,scale=c(2,1))

felixfan/PubMedWordcloud documentation built on May 16, 2019, 12:47 p.m.