I'm trying to plot a vector of log ratios using the imageplot
it keeps telling me my dimensions are incorrect.
Here's what I did.
x <- dir(pattern="test.txt")
# where test.txt contains a 16200 by 12 matrix of numbers (with NAs)
x <- read.delim(x, header=TRUE)
y <- c(x)
And this is the error message:
Error in imageplot(y, layout = list(ngrid.r = 5, ngrid.c = 12, nspot.r
Number of image spots does not agree with layout dimensions
I check the dimension of y and it's indeed 16200.
 16200 1
What am I doing wrong?