Re: [R] Heatmap.2 error

2015-06-19 Thread Adams, Jean
Pijush, The error is a result of you having repeated color values. The warnings can be addressed by changing the arguments that you use. Attachments are removed from posts to R Help, so I used different data to show you an example. Jean library(gplots) data(mtcars) x <- as.matrix(mtcars[1:6

[R] Heatmap.2 error

2015-06-19 Thread Pijush Das
Dear Sir, Please help me solving the error occurring during the execution of the code given below. library("openxlsx") library(gplots) library("RColorBrewer") rix <- read.xlsx(file.choose(), sheet = 1, colNames = TRUE,rowNames = TRUE) rawdata <- data.matrix(rix) colors = c(seq(-2,-0.5,length=