Displaying 1 result from an estimated 1 matches for "myvaroi".
Did you mean:
myvar
2010 Jul 29
2
ggplot2 histograms... a subtle error found
...istogram, allowing for ggplot2 to decide the
binwidths itself, I get the following error:
- stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to
adjust this.
- Error: position_stack requires constant width
My code is simply:
ggplot(data=myDataSet, aes(x=myVarOI)) + geom_histogram()
or
qplot(myDataSet$myVarOI)
If I go ahead and set the binwidth to some value, then the plot can be
made without problems.
The problem is with the specific data that it is trying to plot. I
suspect it is trying to create bins of different sizes, from the error
code....