On Sat, Jun 21, 2008 at 3:36 AM, Karin Lagesen <[EMAIL PROTECTED]> wrote: > > Hello list:) > > I have lots of values which I would like to get a histogram outline > out of. > > An example of what I am talking about: > > testdata = runif(100) > bbb = seq(0,1, by = 0.01) > hist(testdata, breaks = bbb) > > I would like to get the outline of the resulting histogram.
Do you want to draw the outline, or create a function that represents it? (that's what stepfun will do) Either way looking at: h <- hist(testdata, breaks = bbb) str(h) will probably be helpful. Hadley -- http://had.co.nz/ ______________________________________________ R-help@r-project.org 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.