This is taken from the help for the hist function:
Typical plots with vertical bars are not histograms. Consider barplot
or plot(*, type = h) for such bar plots.
For example:
x - rchisq(100, df = 4)
op-hist(x, freq = FALSE, ylim = c(0, 0.2))
plot(op$mids,op$counts,type=h)
On 06/10/06,
Baoqiang Cao wrote:
Hi there,
I really couldn't find out how to plot histogram with point/line instead of
rectangle for each bin? Any help please? Thanks!
This is a guess, but...
y-hist(rnorm(100,3),plot=FALSE)$counts
x-barplot(y,width=0.01,space=20)
points(x,y)
Jim
Hi there,
I really couldn't find out how to plot histogram with point/line instead of
rectangle for each bin? Any help please? Thanks!
Best,
-Cao
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Hi,
I have some difficulties to figure how to set a range to my histogram bands.
I have values that are [0,50] and they appear once in my list. How
can I do a histogram that include all the values between a range of
1 together? [0,1],[10001,2],[21,3], ...
Thanks,
Mathieu
Mathieu Drapeau wrote:
Hi,
I have some difficulties to figure how to set a range to my histogram
bands.
I have values that are [0,50] and they appear once in my list. How
can I do a histogram that include all the values between a range of
1 together?