[R] correlation matrix

1Rnwb sbpurohit at gmail.com
Mon Oct 10 21:44:36 CEST 2011


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.



More information about the R-help mailing list