[R] Boxplots from 4 dimensional array

2011-09-20 Thread Tarmo Remmel
Hello list members, I am working with simulated data for landscape pattern analysis. I have 1000 replicates of binary (2 colour) gridded landscapes at each combination of 9 levels of class proportion and 11 levels of spatial autocorrelation. The results are stored in an array as follows: > dim(s

[R] persp and trans3d for type="h" points

2011-06-13 Thread Tarmo Remmel
Hello, I have a matrix [9,11] called tempmed from which I produce a perspective plot. I then indicate a point on the surface to which I want to drop a point using points() and trans3d(). The code is below. However, the dropped line does not draw properly on the plot, it only comes down about ha

[R] Cross tabulation with fixed dimensions

2010-03-05 Thread Tarmo Remmel
Hello, This is a seemingly simple task, but it has been frustrating me for too long, so I am turning to this list for some help. I have two vectors of factors which are quite long; two simple examples are shown here: > a <- c(1,2,3,4,5) > b <- c(1,2,5,5,6) If I produce a cross-tabulation of the