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)
}
psolymos/bSims documentation built on Oct. 30, 2023, 8:16 a.m.