2

I have a following plot with logarithmic y-scale that I plotted using ggplot2 in R.

enter image description here

convergencePlot = ggplot(allCosts, aes(x=V2))
finalPlot = convergencePlot + stat_bin() + scal_y_log10()

When I plot this I get the following warning:

Stacking not well defined when ymin != 0 
  1. I do not understand this warning. How can I remove this warning?
  2. I see that the plot starts form 1 for all values of x except some where it starts from 0 and end at 1 (red circle). Is this an error?
  3. Some x-values that I see on the extreme left (I guess 77 and 76) are not present in my original data. How can I remove those values? (green circle)
4

1 回答 1

2

如果不了解您的实际数据中的内容,很难回答这个问题,但至少有一个猜测:

试试+ stat_bin(drop = TRUE)吧。

于 2012-04-08T16:59:04.243 回答