tmodTagcloud: Tag cloud based on tmod results
Description
Plot a tag (word) cloud based on results from tmod enrichment.Usage
tmodTagcloud(results, filter = TRUE, simplify = TRUE, tag.col = "Title",
weights.col = "auto", pval.col = "P.Value", ...)
Arguments
results
data frame produced by one of the tmod enrichment tests
filter
Whether redundant and not annotated modules should be removed
simplify
Whether module names should be simplified
tag.col
Which column from results should be used as tags on the plot
weights.col
Which column from results should be used as weights for the tag cloud
pval.col
Which column contains the P values which will be used to shade the tags
...
Any further parameters are passed to the tagcloud function
Value
- Either NULL or whatever tagcloud returns
Details
The tags will be generated based on results from tmod or any other
suitable data frame. The data frame must contain two numeric columns,
specified with "weights.col" and "pval.col", which will be
used to calculate the size and shade of the tags, respectively.
Furthermore, it has to contain a column with tags (parameter "tag.col",
by default "Title").Any data frame can be used as long as it contains the specified columns.
Examples
Run this codedata(tmod)
fg <- tmod$MODULES2GENES[["LI.M127"]]
bg <- tmod$GENES$ID
result <- tmodHGtest( fg, bg )
tmodTagcloud(result)
Run the code above in your browser using DataLab