I have an array with dimensions 32x32x1000. I want to image all the slices of this array using the image
and apply
functions. The 1000 pictures would be displayed as a 25x40 plot. However, I am able to visualize only the first slice.
Here is my code:
par(mfrow = c(25, 40))
data <- array(data = b, dim = c(32,32,2000))
apply(data, c(1,2), FUN = image)