On 8/31/07, squall44 <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Although I've done lots of research on histograms, I'm still not able to
> create one. I'd be glad if someone could explain them to me.
>
> That's what it eventually should look like:
> http://www.nabble.com/file/p12423193/histogram.gif
>
> The interval limits are: (0), 1, 2, 3, 3.5, 4.5, 5, 5.5, (6)
> The interval widths are therefore: (1), 1, 1, 0.5, 1, 0.5, 0.5, (0.5)
> The surface areas are: (0), 0.2, 0.3, 0.3, 0.1, 0, 0.1, (0)
>
> I think the argument for the interval limits is breaks, isn't it? How can I
> define the interval widths?
>
> Thanks for any clues
> Tobias
> --



You want to do a barplot, as is explained in ?hist.
____

int.width<-c(1,1,1,0.5,1,0.5,0.5,0.5)
surf.area<-c(0,0.2,0.3,0.3,0.1,0,0.1,0)
height<-surf.area/int.width
barplot(height,int.width)

_____

/Gustaf



-- 
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gustaf_rydevik

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to