R/circle.R

"circle" <- function(radius = 1, origin = c(0,0)) 
{
    t <- seq(-pi,pi,by=0.01)
    a <- origin[1]
    b <- origin[2]
    r <- radius
    x <- a + r*cos(t)
    y <- b + r*sin(t)
    points(x,y,type="l")
}

Try the calibrate package in your browser

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

calibrate documentation built on July 1, 2020, 7:03 p.m.