R/lines.bsims_detections.R

Defines functions lines.bsims_detections

Documented in lines.bsims_detections

lines.bsims_detections <-
function(x, event_type=NULL, tlim=NULL, condition="event1", ...) {
  if (is.null(event_type))
    event_type <- x$event_type
  z <- .get_detections(x,
    condition=condition, event_type=event_type, tlim=tlim)
  xy <- z[,c("x", "y")]
  for (i in seq_len(nrow(z))) {
    lines(c(x$xy[1L], xy[i,1L]), c(x$xy[2L], xy[i,2L]), ...)
  }
  invisible(x)
}

Try the bSims package in your browser

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

bSims documentation built on Oct. 7, 2021, 9:13 a.m.