powered by
PubMed wordcloud.
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"))
output of cleanAbstracts, or a data frame with one colume of 'word' and one colume of 'freq'.
A vector of length 2 indicating the range of the size of the words.
words with frequency below min.freq will not be plotted
Maximum number of words to be plotted. least frequent terms dropped
plot words in random order. If false, they will be plotted in decreasing frequency
proportion words with 90 degree rotation
if false, then c++ code is used for collision detection, otherwise R is used
color words from least to most frequent
This function just call 'wordcloud' from package wordcloud. See package wordcloud for more details about the parameters.
# NOT RUN { # text="Jobs received a number of honors and public recognition." # cleanD=cleanAbstracts(text) # plotWordCloud(cleanD,min.freq=1,scale=c(2,1)) # }
Run the code above in your browser using DataLab