[R] how do i plot this "hist"?
petr.pikal at precheza.cz
Tue Nov 9 20:57:36 CET 2010
r-help-bounces at r-project.org napsal dne 09.11.2010 20:25:09:
> casperyc <casperyc at hotmail.co.uk>
> Odeslal: r-help-bounces at r-project.org
> 09.11.2010 20:25
> Re: [R] how do i plot this "hist"?
> Hi all,
> Thank you both. The codes work perfectly.
> I now use
> barplot(t(x.m)[-1,], names.arg = x.m[,1])
> to make the 'histogram' plot.
> Now how do I add a dentity line to it?
> like 'superpose' on the graph?
> say if I got a Normal with mean 100 and variance 3...
see ?lines and ?density
> And I can work out the mean and variance
> through their definition, multiple the 'values' and the 'frequencies',
> sum them up and then devid by the total number, ect...
> Is there any codes that can deal with these count data?
> so that I can tell R, ''x.m[,1]" is the frequency and work out the mean,
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help