Re: [R] display two pie-charts

From: Romain Francois <francoisromain_at_free.fr>
Date: Thu 12 May 2005 - 00:05:38 EST

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    ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu May 12 00:17:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:41 EST