okay so fixed what i need to do this way

finit=0
for(ri in 1:dim(xa)[1])
{
finit=finit+1
xc[ri,1:finit]<-xa[ri,1:finit]
xc[1:finit,ri]<-xb[1:finit,ri]
}

but getting error in heatmap.2

> mycol <- colorpanel(n=40,low="red",mid="white",high="blue")
> heatmap.2(xc, breaks=pairs.breaks, col=mycol, Rowv=FALSE, symm=TRUE,
> key=TRUE, symkey=FALSE, density.info="none", trace="none", cexRow=0.5, 
+  scale = "none", dendrogram="none")
Error in heatmap.2(xc, breaks = pairs.breaks, col = mycol, Rowv = FALSE,  : 
  `x' must be a numeric matrix
any pointers are appreciated

--
View this message in context: 
http://r.789695.n4.nabble.com/correlation-matrix-tp3891085p3891584.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to