Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LocationA<-c(0,0,0.83,0.167,0.167,0.083,0.25,0.212,0,0.083,0,0)
- LocationB<-c(0,0,0,0,0,0,0,0,0,0.212,0,0)
- LocationC<-c(0.633,0.462,0.167,0.467,0,0.167,0.451,0.333,0.462,0.595,0,0)
- TestMat<-cbind(LocationA,LocationB,LocationC)
- rownames(TestMat)<-c(2001:2012)
- x<-c(rep("LocationA",12),rep("LocationB",12),rep("LocationC",12))
- y<-rep(c(2001:2012),3)
- z<-c(LocationA,LocationB,LocationC)
- x2<-c(rep(1,12),rep(2,12),rep(3,12))
- wireframe(z~x2*y,xlab="Location",ylab="Year",zlab="Value",distance=0.4,zoom=0.6,
- scales=list(arrows=FALSE,
- x=list(at=c(1:3),label=c("A","B","C")),
- y=list(at=c(2001:2012),label=c(2001:2012)),
- 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)),
- distance=c(2,2,2)),
- drape=TRUE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement