Re: [R] image plot with color scale

2013-11-19 Thread Jim Lemon
On 11/19/2013 10:07 PM, Witold E Wolski wrote: I am plotting an image of correlations but need to add a color scale... dat<-matrix(rnorm(1000),ncol=5) labels=c("a","b","c","d","e") cortmp<- cor(dat) image(cortmp , axes = F ) axis( 1, at=seq(0,1,length=length(labels)) , labels=labels , cex.axis=

[R] image plot with color scale

2013-11-19 Thread Witold E Wolski
I am plotting an image of correlations but need to add a color scale... dat<-matrix(rnorm(1000),ncol=5) labels=c("a","b","c","d","e") cortmp <- cor(dat) image(cortmp , axes = F ) axis( 1, at=seq(0,1,length=length(labels)) , labels=labels , cex.axis=0.8 ,srt = 45,las=2,cex=1) axis( 2, at=seq(0,1,l