1

ggPlot2 allows the break points to be specified for the tabulation of the histogram. To date, I have not figured out how to do this using Lets Plot Kotlin. Is there an approach for doing this using geom_histogram() in Lets Plot for Kotlin?

I guess that I could try to use geom_bar() directly and build up a histogram from base elements, but it seems like if ggPlot2 allows this, why not Lets Plot for Kotlin?

1 Answers1

0

You can adjust number/location of bins using geomHistogram() parameters bins, binWidth, center and boundary if that is what you wanted.

To customize breaks along the x-axis you can try breaks and labels parameters in scaleXContinuous().

alshan
  • 136
  • 3