R/text.pos.r

text.pos<- function (x0, y0, r, angle,...) {  
     
  xh <-  r * cos(angle)       
  yh <-  r * sin(angle)        
  x.adj  <- x0 + xh 
  y.adj  <- y0 + yh  
  return(c(x.adj, y.adj))
}   

Try the SubgrPlots package in your browser

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

SubgrPlots documentation built on Jan. 29, 2020, 5:07 p.m.