gene.legend {exonmap} | R Documentation |
Adds a colour bar to a plot. Used by plotGene
and gene.strip
gene.legend(x,y,w,h,col,col.range,border="#dddddd",cex)
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 |
Is called by plotGene
and gene.strip
by default. Position of the legend can be fine tuned by calling this function directly.
none
Crispin Miller
http://bioinformatics.picr.man.ac.uk/
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) }