plot - R - heatmap.2 log scale -


is there way use log scale heatmap.2 or have log data beforehand before plot? currently, have 50 x 50 matrix big numbers , heatmap showing little depth.

what's problem taking logs beforehand? it's simple as...

m<- matrix( sample( c(10,100,1000) , 16 , repl = true ) , 4 , 4 ) #     [,1] [,2] [,3] [,4] #[1,]   10   10  100  100 #[2,]  100   10  100 1000 #[3,]  100 1000  100  100 #[4,]  100   10   10 1000  log10(m) #     [,1] [,2] [,3] [,4] #[1,]    1    1    2    2 #[2,]    2    1    2    3 #[3,]    2    3    2    2 #[4,]    2    1    1    3 

or indeed require( gplots ); heatmap.2( log10(m) ).


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -