It starts fine, but after selecting a range in the histogram it fails with the following error
Warning: Error in brushedPoints: brushedPoints requires a brush object with xmin, xmax, ymin, and ymax.
74: stop
73: brushedPoints
72: observeEventHandler [d:/documents/arbeitsmappe/snippets/R/shiny/realttime_dashhboard/scratches/brushOptsHist.R#12]
1: shiny::runApp
What am I doing wrong? Is there an alternative to brushPoints for ggplot histograms, or could I instrument it differently to provide the selected bins?
There is just one minor flaw: Occasionally the server receives a brush event although the mouse has not been released yet. Is there any way to avoid that? In plotly there is the distinction between selecting and selected (see https://plotly.com/javascript/plotlyjs-events/#event-data), I wonder if shiny supports a similar concept? Or is this just a (known) bug?