On 12/10/2009 04:01 PM, terry johnson wrote: > If I want to scale a histogram ie multiply by a constant how would I do > this? Thanks > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Without further details I would guess: suppose tmp <- runif(100,0,100) hist(tmp)
then hist(tmp*.01) will rescale the range from 0 to 100 to 0 to 1 Stephan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.