"hist" returns a list, to which you can apply your weights.

Alternatively, in R 1.7.1, typing "hist" [without the quotes (")] at a commands prompt reveals a call to UseMethod. 'methods("hist")' identifies functions "hist.default" and "hist.POSIXt". Typing "hist.default" prodused the R code, which you can then customize any way you want. The protocol in R 1.8 for this is different, but the same concepts should apply, I believe.

hope this helps. spencer graves

Mårten Bjellerup wrote:

I have the 'breaks' for the histogram ('hist') but I want weight the cells instead of 
using actual observations. I thought that using freq=FALSE implied that the numbers in 
'x' were weights but this turned out to be wrong.
Any help and/or comment is very much appreciated.

Regards,

Mårten

Mårten Bjellerup
Doctoral Student in Economics
School of Management and Economics
Växjö University
SE-351 95  Växjö
Sweden

Tel: +46 470 708410 Fax: +46 470 82478 Mobile: +46 70 969 88 88 Mail: [EMAIL PROTECTED] Web: http://www.ehv.vxu.se
-------------------------------------
"Forecasting is like trying to
drive a car blindfolded and
following directions given by a person who is looking
out of the back window"


______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help



______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to