R/proliferationGrid.R

Defines functions proliferationGrid

Documented in proliferationGrid

## =========================================================================##
## =========================================================================##
##                          proliferationGrid                               ##
## =========================================================================##
## =========================================================================##
proliferationGrid <- function(parentPosition,
  fittedDistance = NA, dataRange = 1024, logDecades = 4,
  lwd=1, lty=3, col=rgb(0,0,0,0.5))
{
  .dist <- ifelse(is.na(fittedDistance),generationsDistance(dataRange, logDecades), fittedDistance)
  if (dev.cur() == 1)
    stop("Plot has not be called yet.")
  .this.step = parentPosition
  .steps = round(parentPosition / .dist)
  for (i in 1:.steps)
  {
    abline(v = .this.step, lwd=lwd, lty=lty, col=col)
    .this.step = .this.step - .dist
  }
}

Try the flowFit package in your browser

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

flowFit documentation built on April 28, 2020, 9:04 p.m.