search for: assetscorimageplot

Displaying 1 result from an estimated 1 matches for "assetscorimageplot".

2011 Feb 22
1
image.plot results in different colors than legends
...394069 -0.88815356 2 0.4344728 1.0000000 -0.3423528 -0.1710087 0.80005311 3 0.5271340 -0.2136791 1.0000000 0.6494039 -0.33841405 4 0.2199821 -0.3731925 0.4257412 1.0000000 -0.08108044 5 0.7100858 0.5146790 0.3749563 -0.2263762 1.00000000 I then generate my plot as follows (adaptation from assetsCorImagePlot function in fAssets package): n <- ncol(sample) names <- colnames(sample) image.plot(x=1:n, y=1:n, z=sample[,n:1], col=rainbow(20, start=0, end=.6, alpha=.8), axes=F, main='', xlab='', ylab='') X <- t(sample) require(fields) coord <- grid2d(1:n, 1:n) for (i in 1:...