Displaying 1 result from an estimated 1 matches for "clockface".
2003 Aug 15
0
Re: [R} stars graphs
...(newrange[2]-newrange[1])/(xrange[2]-xrange[1])
invisible(newrange[1]+(x-xrange[1])*mfac)
}
else {
cat("Usage: rescale(x,newrange)\n")
cat("\twhere x is a numeric object and newrange is the extent of the new range\n")
}
}
# plots data as radial lines on a 24 hour "clockface" going clockwise
clock24.star<-function(lengths,radial.pos,radial.range) {
if(missing(radial.range)) radial.range<-range(radial.pos)
npos<-length(radial.pos)
newrange<-c(2.5*pi,0.5*pi)
# rescale to a range of 0 to 2pi
# starting at "12 o'clock" and going clockwi...