Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. LocationA<-c(0,0,0.83,0.167,0.167,0.083,0.25,0.212,0,0.083,0,0)
  2. LocationB<-c(0,0,0,0,0,0,0,0,0,0.212,0,0)
  3. LocationC<-c(0.633,0.462,0.167,0.467,0,0.167,0.451,0.333,0.462,0.595,0,0)
  4.  
  5. TestMat<-cbind(LocationA,LocationB,LocationC)
  6. rownames(TestMat)<-c(2001:2012)
  7.  
  8. x<-c(rep("LocationA",12),rep("LocationB",12),rep("LocationC",12))
  9. y<-rep(c(2001:2012),3)
  10. z<-c(LocationA,LocationB,LocationC)
  11. x2<-c(rep(1,12),rep(2,12),rep(3,12))
  12.  
  13. wireframe(z~x2*y,xlab="Location",ylab="Year",zlab="Value",distance=0.4,zoom=0.6,
  14. scales=list(arrows=FALSE,
  15. x=list(at=c(1:3),label=c("A","B","C")),
  16. y=list(at=c(2001:2012),label=c(2001:2012)),
  17. z=list(at=c(0,0.2,0.4,0.6,0.8,1),label=c(0,0.2,0.4,0.6,0.8,1)),
  18. distance=c(2,2,2)),
  19. drape=TRUE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement