Re: [R] Re : Draw a circle with a given radius in an existing map

2006-11-07 Thread Arien Lam
A function that works for me, assuming the Earth is close enough to a sphere (which may or may not be true in your application), follows below. Hope this helps, Arien # computes the place where you end up, if you travel a certain distance along a great circle, # which is uniquely defined by a

Re: [R] Re : Draw a circle with a given radius in an existing map

2006-11-06 Thread Roger Bivand
On Tue, 7 Nov 2006, justin bem wrote: > Try this : > >it<-seq(0,2*pi, l=100) > >xt<-r*cos(it) > >yt<-r*sin(it) > >points(xt,yt,type="l",col="blue") > > a circle of radium r is define by >xt=r*cos(t) >yt=r*sin(t) Isn't this suggestion on the plane, when the question was a

[R] Re : Draw a circle with a given radius in an existing map

2006-11-06 Thread justin bem
Try this : >it<-seq(0,2*pi, l=100) >xt<-r*cos(it) >yt<-r*sin(it) >points(xt,yt,type="l",col="blue") a circle of radium r is define by xt=r*cos(t) yt=r*sin(t) Justin BEM Elève Ingénieur Statisticien Economiste BP 294 Yaoundé. Tél (00237)9597295. - Message d'origine --