Re: [R] ggplot2: Histogram with negative values on x-axis doesn't work

2009-10-30 Thread baptiste auguie
2009/10/30 hadley wickham : > I read anything that mentions > ggplot2 no matter where it is. > ... one should hope this statement only applies to "the Internet" though, does it? Please do share your regexp if it's not the case. :) baptiste __ R-help@r

Re: [R] ggplot2: Histogram with negative values on x-axis doesn't work

2009-10-29 Thread hadley wickham
> I can reproduce it with for example > x=c(-9.23, -9.56, -1.40) > > But adding a single positive number, even .001, fixes it, while > adding a similar negative number introduces a new error message, so it > really looks like a bug in ggplot2 when all the values are negative. > > Report it to t

Re: [R] ggplot2: Histogram with negative values on x-axis doesn't work

2009-10-21 Thread Karl Ove Hufthammer
In article , sebastian.roh...@basf.com says... > I have a dataset that contains numbers between -10 and 0. E.g. x = > c(-9.23, -9.56, -1.40, ...) > If I no do a > > qplot(x, geom="histogram") > I get the error: > Error: position_stack requires non-overlapping x intervals > Strangely, the following

[R] ggplot2: Histogram with negative values on x-axis doesn't work

2009-10-21 Thread sebastian . rohrer
I have a dataset that contains numbers between -10 and 0. E.g. x = c(-9.23, -9.56, -1.40, ...) If I no do a > qplot(x, geom="histogram") I get the error: Error: position_stack requires non-overlapping x intervals Strangely, the following both work: > qplot(x * -1, geom="histogram") > qplot(x+100,