3

I have some values that i want to plot in a geom_bar() chart. the problem with the data is, that most values are small (0:100) and some values are big (50000:30000000).

Is it possible to break the bar of these large values, that the axis goes from 0 to 100 and then from 50000 to the largest values with a visible gap in between?

tonytonov
  • 24,116
  • 16
  • 77
  • 94
reox
  • 4,766
  • 8
  • 51
  • 91
  • 3
    Not easily, no. (Broken axes are often considered "bad practice" and ggplot will rarely make that sort of thing easy, or even possible.) See [here](http://stackoverflow.com/q/19612348/324364) for alternatives. – joran Mar 24 '14 at 14:25
  • No, but if you post some more data you could get some workaround – Michele Mar 24 '14 at 14:26
  • @joran: so would you consider making two plots? for example one for the large and one for the small values? – reox Mar 24 '14 at 14:49
  • Maybe. Using a log scale is another option to try. – joran Mar 24 '14 at 14:55
  • @joran: unfortuately when using a log scale, you can not see the difference of the small values though – reox Mar 24 '14 at 20:41

0 Answers0