Learn R Programming

GOplot (version 1.0.2)

GOBar: Z-score coloured barplot.

Description

Z-score coloured barplot of terms ordered alternatively by z-score or the negative logarithm of the adjusted p-value

Usage

GOBar(data, display, order.by.zscore = T, title, zsc.col)

Arguments

data
A data frame containing at least the term ID and/or term, the adjusted p-value and the z-score. A possible input can be generated with the circle_dat function
display
A character vector indicating whether a single plot ('single') or a facet plot with panels for each category should be drawn (default='single')
order.by.zscore
Defines the order of the bars. If TRUE the bars are ordered according to the z-scores of the processes. Otherwise the bars are ordered by the negative logarithm of the adjusted p-value
title
The title of the plot
zsc.col
Character vector to define the colour scale for the z-score of the form c(high, midpoint,low)

Details

If display is used to facet the plot the width of the panels will be proportional to the length of the x scale.

Examples

Run this code
## Not run: 
# #Load the included dataset
# data(EC)
# 
# #Building the circ object
# circ<-circular_dat(EC$david, EC$genelist)
# 
# #Creating the bar plot
# GOBar(circ)
# 
# #Faceting the plot
# GOBar(circ, display='multiple')
# ## End(Not run)

Run the code above in your browser using DataLab