[R] plotting circles / piecharts with only one category
ihaka at stat.auckland.ac.nz
Fri Jun 22 19:54:33 CEST 2001
Moritz Lennert wrote:
> For further use in a cartography program, I would like to create a bunch of
> eps files with circles in graduated gray shades (5 different shades). Up
> to now I've been using 'piechart' for this, but since I only have one
> single category I get a central line in the circles which is not very
> aesthetic. Is there a way to keep piechart from drawing this central line,
> or is there a function that would allow me to draw simple circles in
> different gray shades ?
The function you want is called "symbols". E.g.
x <- runif(10)
y <- runif(10)
r <- (1+runif(10))/2
plot(x, y, type="n", xlim=c(0,1), ylim=c(0,1), axes=F, ann=F)
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