Description Usage Arguments Details Value See Also
Create wordcloud of terms associated with a miRNA name.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | plot_wordcloud(
df,
mir,
min.freq = 1,
max.terms = 20,
tf.idf = FALSE,
token = "words",
...,
stopwords = stopwords_miretrieve,
stopwords_ngram = TRUE,
colours = "black",
random.colour = TRUE,
ordered.colour = FALSE,
col.mir = miRNA,
col.abstract = Abstract,
col.pmid = PMID
)
|
df |
Data frame containing miRNA names, abstracts, and PubMed-IDs. |
mir |
String. miRNA name of interest. |
min.freq |
Integer. Specifies least number of times a term must be associated with
|
max.terms |
Integer. Maximum number of terms to plot. |
tf.idf |
Boolean. If |
token |
String. Specifies how abstracts shall be split up. Taken from
|
... |
Additional arguments for tokenization, if necessary. |
stopwords |
Data frame containing stop words. |
stopwords_ngram |
Boolean. Specifies if stop words shall be removed
from abstracts when using ngrams. Only applied when |
colours |
Vector of strings. Colours for wordcloud. |
random.colour |
Boolean. Taken from |
ordered.colour |
Boolean. Taken from |
col.mir |
Symbol. Column containing miRNA names. |
col.abstract |
Symbol. Column containing abstracts. |
col.pmid |
Symbol. Column containing PubMed-IDs. |
Create wordcloud of terms associated with a miRNA name.
miRNA names must be in a data frame df
, while terms are taken
from abstracts contained in df
.
Number of terms to plot is regulated by max.terms
, while min.freq
regulates
the least number of times a term must be mentioned to be plotted.
Terms can either be evaluated as their raw count, e.g. how often they are
mentioned in conjunction with the miRNA of interest, or weighed in a tf-idf
fashion. If tf.idf = TRUE
, miRNA names are considered as separate documents,
and terms often associated with one miRNA, but not with other miRNAs get
more weight.
plot_wordcloud()
is based on the tools available in the wordcloud
package.
Wordcloud of terms associated with a miRNA name.
plot_mir_terms()
, wordcloud::wordcloud()
, tidytext::unnest_tokens()
Other miR term functions:
plot_mir_terms()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.