R/p2p_arrows.R

Defines functions p2p_arrows

Documented in p2p_arrows

p2p_arrows<-function(x1,y1,x2,y2,space=0.05,col=par("fg"),...) {
 xspace<-(x2-x1)*space
 yspace<-(y2-y1)*space
 arrows(x1+xspace,y1+yspace,x2-xspace,y2-yspace,...)
}

Try the plotrix package in your browser

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

plotrix documentation built on Nov. 10, 2023, 5:07 p.m.