Learn R Programming

GeneAnswers (version 2.14.0)

geneAnswersChartPlots: Make pie chart and bar plot

Description

Make pie chart and bar plot for given GeneAnswers instance

Usage

geneAnswersChartPlots(x, chartType=c('pieChart', 'barPlot', 'all'), sortBy = c('geneNum', 'pvalue', 'foldChange', 'oddsRatio', 'correctedPvalue'), newWindow=TRUE, ...)

Arguments

x
a GeneAnswers instance
chartType
plot type, "pieChart", "barPlot" or both could be specified.
sortBy
the column will be used to be represented.
newWindow
logic, determine whether draw on a new canvas.
...
additional arguments passed to piechart or barplot.

Value

A pie chart and/or barplot are generated depends on specification.

Details

chartType could be pie chart, bar plot or both (parameter is "all"). specifiedCols is the column of enrichmentInfo that will be used to plot. It could be one of 'genes in Category', 'p value' or 'fdr p value'. If chartType is set to 'all', the barplot will be drawn on a new canvas whatever newWindow is set to TRUE or FALSE.

References

Feng, G., Du, P., Krett, N., Tessel, M., Rosen, S., Kibbe, W.A. and Lin, S.M., 'A collection of bioconductor methods to visualize gene-list annotations', BMC Research Notes 2010, 3:10

See Also

chartPlots

Examples

Run this code
example(GeneAnswers)
## Not run: geneAnswersChartPlots(x) 

Run the code above in your browser using DataLab