R/arrangePlots.R

Defines functions arrangePlots

Documented in arrangePlots

arrangePlots <-
function(n.plots, landscape = FALSE) {
  # version 1.1 (14 Dec 2023)
  # used internally by optiThresh
  if (n.plots <= 1) return(c(1, 1))
  root <- sqrt(n.plots)
  large <- ceiling(root)
  small <- round(root)
  if (landscape) plots.rc <- c(small, large)
  else plots.rc <- c(large, small)
  return(plots.rc)
}

Try the modEvA package in your browser

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

modEvA documentation built on March 25, 2024, 3 p.m.