Skip to content
Prev 285598 / 398502 Next

Symbol size in plot relative to axis scale and not the graphics window

On 02/16/2012 10:39 PM, Hey, Kirsty wrote:
Hi Kirsty,
As you seem to be using the small circle (pch=1), you could use 
draw.circle (plotrix) instead. The three relevant arguments are:

x,y (x and y coordinates of the circle in user units)
radius (radius of the circle in user units)

For example:

plot(coords[,1:2],type="n")
draw.circle(coords[,1],coords[,2],coords$radius)

You can also change the color, width and line type of the circumference 
and fill the circles if you wish.

Jim