Re: [R] error with persp()- increasing 'x' and 'y' values expected

2012-02-20 Thread adick
On Feb 20, 2012, at 2:15 PM, adick wrote: Do you have missing entries? (Running your data fragment through your code produces the same error.) You may want to use rep with each and times arguments to construct a regular grid and then population the missing entries in matrix with NA&#

[R] error with persp()- increasing 'x' and 'y' values expected

2012-02-20 Thread adick
I want to use persp to graph my data and it keeps giving me the error increasing 'x' and 'y' values expected, even though my data is in increasing order with respect to x and y. Here is the code I'm currently using: bob= scan ("SBA3dataTaxonB.txt",what="char") labels = bob[1:3] bob=bob[-c(1,2,3)