[R] cex
Simon Bond
bond at graylab.ac.uk
Fri Jan 29 14:35:10 CET 1999
Hi,
I was hoping someone could help me with this problem. I’m trying to produce
what can be referred to as L’Abbe plots, where a character (my preference
is a circle) is plotted at some specified co-ordinates and the size of the
character is proportional to a weighting variable. I’ve tried this
plot (x, y, type="n")
size <- weight/mean(weight)
for ( i in 1:length(x) ) { points (x[i],y[i], pch=1, cex= 2* size[i])}
The problem is that there seems to be both an upper and lower bound for the
effect that the option cex has, about 0.5 and 2, so you get all the points
below or above a critical weight the same size, thus ruining the desired
effect.
Is there some option to remove these bounds , the upper bound in
particular, or, is there a command to draw a circle of specified centre and
radius? Indeed, any other working alternative you can come up with.
I ought to mention that I’ve only recently set up R, but was fairly
competent with S-plus the last time I had access to it.
Simon Bond.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list