I'm trying to visualize a matrix using image function. I'd like to set the size of cells (I mean the small squares each of which represents one elements of the matrix). I don't know how many elements will my matrix have beforehand.
This is my code now:
A <- matrix(1:20, 5, 4)
image(A)
and I'd like to have something like this:
image(A, sizeOfCell=10)
Would anyone have some idea?