Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. par(mar=c(0,0,0,0))
  2. plot(0,0,xlim=c(0,28),ylim=c(0,1),
  3. xaxt="n",yaxt="n",bty="n",xlab="",ylab="",type="n")
  4. i <- 1
  5. for(j in 1:20)
  6. {
  7. test <- (6+j):26
  8. train <- 1:(5+j)
  9. arrows(0,1-j/20,27,1-j/20,0.05)
  10. points(train,rep(1-j/20,length(train)),pch=19,col="blue")
  11. if(length(test) >= i)
  12. points(test[i], 1-j/20, pch=19, col="red")
  13. if(length(test) >= i)
  14. points(test[-i], rep(1-j/20,length(test)-1), pch=19, col="gray")
  15. else
  16. points(test, rep(1-j/20,length(test)), pch=19, col="gray")
  17. }
  18. text(28,.95,"time")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement