R/slicepos.R

Defines functions slicepos

slicepos <- function(r=0.5,start=0, end=2, distance=1.2, length=800){
  slice.position <- seq(start*pi, end*pi, length.out=length) 
  df <- data.frame(
    x = r*cos(slice.position),
    y = r*sin(slice.position), stringsAsFactors = T
  )
  df <- do.call(rbind, list(c(0,0),df, c(0, 0)))
  df
}

Try the patternplot package in your browser

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

patternplot documentation built on April 21, 2020, 5:05 p.m.