[R] display two pie-charts

Romain Francois francoisromain at free.fr
Wed May 11 16:05:38 CEST 2005


Le 11.05.2005 15:43, Lars a écrit :

> Hey,
>
> i'd like to compose a clock-like looking plot composed out of two 
> circles, each showing the length of a period (to compare them). first, 
> to do so, it looked the easiest by using pie(), just puting multiple 
> pie-charts over each other. the problem is that once the second pie is 
> drawn, it replaces the first one. does anybody know how to add a 
> second, smaller pie over an existing one, like a layer?
>
> thanks, lars
>
Look at :

?layout
?par

And try :

par(mfrow=c(1,2))
pie(runif(4))
pie(runif(4))


-- 
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
~~~~~~      Romain FRANCOIS - http://addictedtor.free.fr         ~~~~~~
~~~~        Etudiant  ISUP - CS3 - Industrie et Services           ~~~~
~~                http://www.isup.cicrp.jussieu.fr/                  ~~
~~~~           Stagiaire INRIA Futurs - Equipe SELECT              ~~~~
~~~~~~   http://www.inria.fr/recherche/equipes/select.fr.html    ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~




More information about the R-help mailing list