R/xPosition.R

xPosition = function (a, scale = 1) {
  x <- a$cut.points[,1] - a$cut.points[1,1]
  pos <- x[a$what == 2]
  list("RingWidth" = x[length(x)] * scale,
       "x"         = (pos[-c(1,length(pos))] - a$LD / 2) * scale)
}

Try the tracheideR package in your browser

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

tracheideR documentation built on May 2, 2019, 7:29 a.m.