[R] hist plot

Jim Lemon jim at bitwrit.com.au
Sat Oct 7 01:24:42 CEST 2006


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



More information about the R-help mailing list