Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. jpn.xlim <- c(125, 150)
  2. jpn.ylim <- c(25, 48)
  3. jpn.zlim <- c(0,200)
  4. clear3d()
  5. for(i in 1:47){
  6. x <- all.list[[i]]
  7. if(i==1){
  8. if(length(x)!=1){
  9. for(j in 1:length(x)){
  10. x2 <- x[[j]]
  11. if(j==1){
  12. x1 <- cbind(x2, rep(0, nrow(x2)))
  13. plot3d(x1[,1], x1[,2], x1[,3], xlim=jpn.xlim, ylim=jpn.ylim, zlim=jpn.zlim, type="l")
  14. }else{
  15. x1 <- cbind(x2, rep(0, nrow(x2)))
  16. lines3d(x1[,1],x1[,2], x1[,3])
  17. }
  18. }
  19. }else{
  20. x1 <- x[[1]]
  21. x2 <- cbind(x1, rep(0, nrow(x1)))
  22. plot3d(x2[,1],x2[,2], x2[,3], xlim=jpn.xlim, ylim=jpn.ylim, zlim=jpn.zlim, type="l")
  23. }
  24. }else{
  25. x1 <- x[[1]]
  26. x2 <- cbind(x1, rep(0, nrow(x1)))
  27. lines3d(x2[,1], x2[,2], x2[,3])
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement