Hi
seems to me that it can be done by image. See ?image.
Just as illustration.
mat<-matrix(sample(c(1,rep(2,10), rep(3,50)), 1000, replace=T),
100,100)
for(i in 1:6) mat[i,c(1:(50-5*i),(50+5*i):100)]<-NA
for(i in 14:9) mat[i,c(1:(50-5*(15-i)),(50+5*(15-i)):100)]<-NA
image(1:100,1:100,mat)
HTH
P
Just a suggestion. It seems like each square can be denoted by x and y
coordinates. Then you essentially have a two dimensional histogram/density
that you need to plot. You can use the lattice functions
"cloud"/"wireframe". You can also go for a heat map/contour plot, the
lattice functions for that