plotWordCloud: Plot Word Cloud

Description Usage Arguments Value Examples

View source: R/plotWordCloud.R

Description

Plot Word Cloud

Usage

1
plotWordCloud(wc, n = Inf, freq = TRUE, norm.freq = TRUE)

Arguments

wc

data.frame for word cloud with frequencies and group. The columns are

word

Word (character)

freq

Frequency of the word (numeric)

norm.freq

Normalized frequency of the word (numeric). Normalization is done by division by the sum of frequencies

group

ID of Ontology Cluster or Link Community (numeric)

n

Top "n" words to plot (numeric). Default is Inf (infinite), which uses all available words.

freq

Use frequency of the words as size. Default TRUE.

norm.freq

Use normalized frequency of the words as size. Default TRUE.

Value

A ggwordcloud object

Examples

1
2
3
4
5
6
ontology.id <- sample_data$GOBP$ID[1:50]
network <- createOntologyNetwork(ontology.id, method = "jaccard", weighted = FALSE)
lc <- getLC(network)
oc <- getOntoClust(lc)
wc <- createWordCloud(oc)
plotWordCloud(wc, n = 10, freq = TRUE, norm.freq = TRUE)

altintasali/ontoClust documentation built on Dec. 19, 2021, 1:36 a.m.