{"word_count": 73, "character_count": 784}
On How to: Weather Radials, there was a nice visualisation of temperatures. Since I am too old fashioned for ggplot2, I wanted to reproduce a similar graph with the old plot style.Assume that daily temperature is in a vector X (e.g. temperature in Montréal, QC, in 2009). To get a radial plot, use&#62; n=length(X)&#62; theta=seq(0,1-1/n,length=n)*2*pi&#62; r=30+X&#62; plot(r*cos(pi/2-theta),r*sin(pi/2-theta),type="l",xlab="",ylab="",axes=FALSE)&#62; for(t in 1:n){+   if(X[t]&#62;0) CL=rgb(0,0,1,.4)+   if(X[t]&#60;0) CL=rgb(1,0,0,.4)+   if(X[t]==0) CL="white"+   segments((30+X[t])*cos(pi/2-theta[t]),(30+X[t])*sin(pi/2-theta[t]),30*cos(pi/2-theta[t]),30*sin(pi/2-theta[t]),col=CL)+ }&#62; for(r in 10*seq(0,6)) lines(r*cos(pi/2-theta),r*sin(pi/2-theta),type="l",col="light blue")