R/expandbound.R

Defines functions expandbound

Documented in expandbound

expandbound<-function(g, pct=.10)
  {
    ###  expand the bounds of a vector range by a specified percent
    r = range(g)
    dg = pct*diff(r)
    
    return(c(r[1]-dg, r[2]+dg)) 
  }

Try the GEOmap package in your browser

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

GEOmap documentation built on Sept. 1, 2023, 5:09 p.m.