Moritz Lennert
2001-Jun-22 14:32 UTC
[R] plotting circles / piecharts with only one category
Hello, 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 ? Moritz -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Moritz Lennert wrote:> > Hello, > > 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) symbols(x,y,circles=r,inches=.5,bg=gray((1:10)/10)) Ross -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._