gene.legend {exonmap}R Documentation

Generate a colour bar to use as a legend

Description

Adds a colour bar to a plot. Used by plotGene 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 plotGene 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

plotGene gene.strip

Examples

 
   if(interactive()) {
     xmapConnect("human")
     data(exonmap)
   
     plotGene("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)
  }

[Package exonmap version 2.0.03 Index]