R/lines.bsims_transcript.R

Defines functions lines.bsims_transcript

Documented in lines.bsims_transcript

lines.bsims_transcript <-
function(x, event_type=NULL, tlim=NULL, ...) {
  if (is.null(event_type))
    event_type <- x$event_type
  z <- .get_detections(x,
    condition=x$condition, event_type=event_type,
    tlim=c(0, max(x$tint)), perception=x$perception)
  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.