R/endspace.R

Defines functions endspace

Documented in endspace

endspace <- function(x, space=0.2)
{
  barwidth <- (max(x)-min(x)) / length(x)

  x1 <- min(x) - barwidth/2 - barwidth*space
  x2 <- max(x) + barwidth/2 + barwidth*space

  out <- c(x1, x2)

  return(out)
}

Try the hafroAssmt package in your browser

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

hafroAssmt documentation built on May 2, 2019, 5:47 p.m.