Displaying 1 result from an estimated 1 matches for "sba3datataxonb".
2012 Feb 20
1
error with persp()- increasing 'x' and 'y' values expected
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)]
bob=as.numeric(bob)
bob=array(bob,dim=c(3, length(bob)/3))
bob=t(bob)
data.frame(bob) -> bob
bob = bob[order(bob[,1], bob[,3]),]
persp(bob[,1], bob[,3], bob[,2], log="bob[,1]")
The first few lines of the txt file SB...