Skip to content
Back to formatted view

Raw Message

Message-ID: <42F07B7F.5060401@free.fr>
Date: 2005-08-03T08:08:31Z
From: Romain Francois
Subject: R: histograms and ylim
In-Reply-To: <42F077F4.2C39D65E@STATS.uct.ac.za>

Le 03.08.2005 09:53, Clark Allan a ??crit :

>hi all
>
>a very simple question once again!!!
>
>can we change the "y" range in a histogram?
>
>
>e.g.
>x=rnorm(1000)
>hist(x,ylim=0.5,prob=T)	#this does not work
>
>
>any suggestions???
>
That does work :

R> hist(x,ylim=c(0,0.5),prob=T) # that does work

Romain

-- 
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
~~~~~~      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    ~~~~~~
~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~