gene.legend {exonmap}R Documentation

Generate a colour bar

Description

Adds a colour bar to a plot. Used by plot.gene and gene.strip

Usage

  gene.legend(x,y,w,h,col,col.range,border="#dddddd",cex)

Arguments

x x location of legend
y y location of legend
w width of colour bar. Defaults to 10% of the plot region
h height of colour bar. Defaults to the height of a character
col palette used to generate colour bar
col.range a range specifying left and right extents of colour bar
cex character expansion
border Border colour for each cell in the colour ar

Details

Is called by plot.gene and gene.strip by default. Position of the legend can be fine tuned by calling this function directly.

Value

none

Author(s)

Crispin Miller

References

http://bioinformatics.picr.man.ac.uk/

See Also

plot.gene gene.strip

Examples

 
## Not run: 
   xmapDatabase("Human")
   data(exonmap)
   
   plot.gene("ENSG00000141510",x.rma,gps=list(1:3,4:6),type="mean-fc",show.legend=FALSE)
   gene.legend(par()$usr[1]+1000,2,col=col.rd.bl,col.range=c(-5,5),cex=0.75)
  
## End(Not run)

[Package exonmap version 1.4.3 Index]