Hi experts

I want to plot some plots with r in plot pane. At least two plots to six or
more.

I have this code to do this job, but in some positions the main plot gets
lost:

 plot(datalistB, type="l")


  while(1+window+n <= length(data[,1]))
    {

      datalistB<-datalist[n:(n+window-1)]
      #some code here...
        par(mfcol=c(8,1), oma=c(1,1,0,0), mar=c(1,1,1,0), tcl=-0.1,
mgp=c(0,0,0))
        plot(datalistB,type="l")
        for(i in seq_along(loop.vec)) {
            plot( subsignals[[i]], type="l")
        }

    n<-n+10
      Sys.sleep(0.5)
    }


how can I solve this problem?

	[[alternative HTML version deleted]]

