R/arrowaxis.R

Defines functions arrowaxis

Documented in arrowaxis

arrowaxis <- function(x=TRUE,y=TRUE) {
  extr <- par("usr")
  if (isTRUE(x)) arrows(extr[1],extr[3],extr[2]+0.05*diff(extr[1:2]),extr[3],
                        xpd=TRUE,length=0.1)
  if (isTRUE(y)) arrows(extr[1],extr[3],extr[1],extr[4]+0.05*diff(extr[3:4]),
                        xpd=TRUE,length=0.1)
}

Try the TRSbook package in your browser

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

TRSbook documentation built on May 2, 2019, 2:45 a.m.