I have a block of code:

window<-5
start<-3
n<-1

seq1 <- seq(1:40)
mat<-matrix(seq1,40)


while(1+window<=length(mat[,1]))
{
  kd<-matrix(as.integer(mat[n:(n+window-1),1]))
  Sys.sleep(0.2)

plot(kd,col="blue",xlab="Rohdaten",ylab="values",xlim=c(start+n,start+n+window-1)
)

  n<-n+1
}

I have this expectation, that on each loop two x-axis and y-axis are
changed and see the values on the plot. but I cant see the value.What
should I do to have values too?. If I am changing this my code to

plot(kd,col="blue",xlab="Rohdaten",ylab="values")

I can see the values but on the x-axis I have no the correct values

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to