PathWC | R Documentation |
Use the textmining and wordcloud packages to make a word cloud. Great for using with enriched GO/GSEA term names
PathWC(
text,
cols = "Dark2",
retTerms = FALSE,
minfreq = 3,
rmwords = c("regulation", "process", "positive", "negative", "mediated", "cell",
"cellular", "protein"),
title = ""
)
text |
Character vector of terms to be processed for a word cloud |
cols |
Colour palette. Can be RColourBrewer palette name, rgb, colour names, or hexadecimal. Default is "Dark2" |
retTerms |
Boolean if term-document matrix dataframe should be returned. Default=FALSE |
minfreq |
Minimum frequency for a word to be included in the word cloud. Default=3 |
rmwords |
Character vector of words to be filtered out (in addition to the default english stop words and words shorter than 3 letters) - defaults to c("regulation","process","positive","negative","mediated", "cell","cellular", "protein") |
title |
Character indicating title of word cloud. Defaults to blank "". |
A Word cloud showing most frequent words in input text, and if indicated, a data frame of word frequencies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.