Skip to content
Back to formatted view

Raw Message

Message-ID: <42821132.70606@free.fr>
Date: 2005-05-11T14:05:38Z
From: Romain Francois
Subject: display two pie-charts
In-Reply-To: <42820C00.7030704@pik-potsdam.de>

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