data(pigeon)
plt <- function( ang, r=c(1,2,3,4), lty=1,... )
{
si <- sin(2*pi*ang/360)
co <- cos(2*pi*ang/360)
points( r*si,r*co )
lines( c(0,r*si),c(0,r*co),...)
}
par(pty="s")
plot(c(0,0),c(0,0),xlim=c(-4,4),ylim=c(-4,4),
xlab="Easting",ylab="Northing")
for (i in 1:nrow(pigeon)) plt( pigeon[i,],col=i )
Run the code above in your browser using DataLab