R/circular.colors.R

Defines functions circular.colors

Documented in circular.colors

#############################################################
#                                                           
#   circular.colors function                                       
#   Author: Claudio Agostinelli                             
#   E-mail: claudio@unive.it                                
#   Date: October, 7, 2007                                  
#   Version: 0.7                                            
#                                                           
#   Copyright (C) 2007 Claudio Agostinelli                  
#                                                           
#############################################################

circular.colors <- function(n, m=0, M=2*pi, offset=0, ...) {
  hh <- seq(from=(m-offset)%%(2*pi), to=if((M-offset)==2*pi) (M-offset) else (M-offset)%%(2*pi), length.out=n)/(M-m)
  hsv(h=hh, ...)
}

Try the circular package in your browser

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

circular documentation built on May 1, 2019, 7:57 p.m.