treemapPlot: treemapPlot Plot GO terms as a treemap.

View source: R/plotlib.R

treemapPlotR Documentation

treemapPlot Plot GO terms as a treemap.

Description

treemapPlot Plot GO terms as a treemap.

Usage

treemapPlot(reducedTerms, size = "score", title = "", ...)

Arguments

reducedTerms

a data.frame with the reduced terms from reduceSimMatrix()

size

what to use as point size. Can be either GO term's "size" or "score"

title

title of the plot. Defaults to nothing

...

other parameters sent to treemap::treemap()

Value

A list from the call to the 'treemap()' function is silently returned

Examples

## Not run: 
go_analysis <- read.delim(system.file("extdata/example.txt", package="rrvgo"))
simMatrix <- calculateSimMatrix(go_analysis$ID, orgdb="org.Hs.eg.db", ont="BP", method="Rel")
scores <- setNames(-log10(go_analysis$qvalue), go_analysis$ID)
reducedTerms <- reduceSimMatrix(simMatrix, scores, threshold=0.7, orgdb="org.Hs.eg.db")
treemapPlot(reducedTerms)

## End(Not run)

imbforge/rrvgo documentation built on Oct. 24, 2024, 12:18 a.m.