[R] How to scale a histogram
S Devriese
sdmaillist at gmail.com
Thu Dec 10 16:14:19 CET 2009
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 at 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
More information about the R-help
mailing list