Skip to content
Prev 347452 / 398500 Next

plot circles where z values are circles radius

Hi Alireza,
Part of the problem is the scale of your numbers. You probably want
something like this.

plot(x,y,cex=z/min(z)*2)

What happens here is that the default plotting character, which
happens to be a circle, is plotted in a size relative to the ratio of
each z value to the minimum z value. This is because the default value
of cex is 1. I have multiplied the result by 2 to make what is
happening more obvious. If you want to generate circles with specific
diameters, you will have to scale these to the area of the plot in
user units - see par("usr").

Jim
On Sat, Jan 24, 2015 at 8:29 AM, Thomas Adams <tea3rd at gmail.com> wrote: