[R] Add function to histogram?

Vincent Goulet vincent.goulet at act.ulaval.ca
Wed Sep 21 23:10:55 CEST 2005


Le 20 Septembre 2005 09:53, Robert Lundqvist a écrit :
> Is there any neat way to add a curve (frequency function or the like) to a
> histogram or other plots? I haven't found one yet...

The one key thing here is not to forget "prob=TRUE" in the call to hist(), to 
ensure that the y-axis is scaled in proportions, not in frequencies.

-- 
  Vincent Goulet, Professeur agrégé
  École d'actuariat
  Université Laval, Québec 
  Vincent.Goulet at act.ulaval.ca   http://vgoulet.act.ulaval.ca




More information about the R-help mailing list