[R] Drawing a circle on an existing graph.

From: Allan Kamau <kamauallan_at_gmail.com>
Date: Sat, 12 Mar 2011 11:08:29 +0300


I would like to draw a circle on a graph I am plotting in R and use the current plot's coordinate system.
The most basic functionality I am looking for is the ability to plot a circle on an already existing graph by simply providing the xy coordinates for it's centre and the radius.

I am also looking for a way to obtain x,y values of a point (of a circle) by specifying only the origin x,y the angle and radius.

Please point me so such a library and perhaps some simple one line code.

Allan.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 12 Mar 2011 - 13:11:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 12 Mar 2011 - 15:20:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive