Re: [R] another histogram question

2008-09-01 Thread Antje
Henrique Dallazuanna schrieb: You can do this: hh <- lapply(h, head, mh) hh$breaks <- head(h$breaks, mh + 1) class(hh) <- "histogram" plot(hh) Thanks a lot, that's exactly what I need :-) (I did not consider the class...) Putting an xlim could also be an solution but I think this is much more

Re: [R] another histogram question

2008-09-01 Thread Marianne Promberger
> I tried to shorten my histogram (because the distribution is quite skewed > and I simply don't want to see the long tail but still use the histogram > plot). How can I do something like this? (The example does not work but I > don't know why...) > > data <- rnorm(100) # as example, of course t

Re: [R] another histogram question

2008-09-01 Thread Henrique Dallazuanna
You can do this: hh <- lapply(h, head, mh) hh$breaks <- head(h$breaks, mh + 1) class(hh) <- "histogram" plot(hh) On Mon, Sep 1, 2008 at 10:44 AM, Antje <[EMAIL PROTECTED]> wrote: > Hi there, > > I hope this question is not as stupid as the one before ... > I tried to shorten my histogram (becaus

Re: [R] another histogram question

2008-09-01 Thread ONKELINX, Thierry
Antje, Have a look at ?hist. It seems like you want this: data <- rnorm(100) hist(data, xlim = c(0,6)) HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and F