[R] Odp: piechart

Petr PIKAL petr.pikal at precheza.cz
Wed Dec 8 10:30:40 CET 2010


Hi

Use par(new=TRUE)
before calling new plot

pie(rep(1,12), col=rainbow(24), radius=0.9)
par(new=TRUE)
pie(rep(1,12), col=topo.colors(24), radius=0.5)

But use piechearts only when you want to deceive your audience.

Regards
Petr


r-help-bounces at r-project.org napsal dne 08.12.2010 09:08:13:

> dear R-community,
> 
> Is it possible to have one pie chart of a large radius and then a pie
> chart with smaller radius placed on top of the larger so the centers of
> the two pie charts coincide?
> I managed to place a filled circle with smaller radius in the piechart, 
> see below.
> 
> Thanks in advance, Sybille
> 
> 
> pie(rep(1,12), col=rainbow(24), radius=0.9, labels= 
> c("J","F","M","A","M","J","J","A","S","O","N","D"),clockwise=T)
> points (0,0,col="black",cex=20,pch=1
> 
> 
> -- 
> -------------------------------------------------
> UDATA Umweltschutz und Datenanalyse
> Hydrologie, Klimafolgenforschung, Boden- und Grundwasserschutz
> Carl-Schüller-Str. 30 1/3, 95444 Bayreuth
> www.udata.de
> 
> Tel. 0921/78638573 (Durchwahl)
> wendel at udata.de
> 
> Firmensitz: Neustadt an der Weinstraße
> Inhaber: Dr. Jörg Scherzer
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list