R/RMlines.R

Defines functions RMlines

Documented in RMlines

RMlines <-
  function(behavior,x){
    
   # targetindex<-dev.cur() 
    #targetindex<-recordPlot() 
    
    
   # l<-locator(1)
    
    
    
    ymin=min(behavior,na.rm = TRUE)
    ymax=max(behavior,na.rm = TRUE)
    ymax=ymax+1
    segments(x0=x,y0=ymin,y1=rep(ymin:ymax))
    
   
    
    
    #u<-readline("accept line? (y/n) ")
    #if (u=="n")
      
      
    
    #{replayPlot(targetindex)}
    
      #ab<-NULL
  #ab<<-recordPlot(ab)
    
    
    
  }

Try the SSDforR package in your browser

Any scripts or data that you put into this service are public.

SSDforR documentation built on Nov. 24, 2023, 5:08 p.m.