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???
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 ~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
Hallo a very simple answer as well hist(x,ylim=c(0,0.5),prob=T) #this does work Cheers Petr from help page: xlim, ylim: the range of x and y values with sensible defaults. Note ^^^^^^ that 'xlim' is _not_ used to define the histogram (breaks), but only for plotting (when 'plot = TRUE'). On 3 Aug 2005 at 9:53, Clark Allan wrote:> 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???Petr Pikal petr.pikal at precheza.cz