Histogram conditional fill color
I would like to make a histogram where the fill color changes depending on the low end of the bin. I do not want a manual fill. This answer seems promising, but I could not transition it successfully to a histogram and two-value (not gradient) color scheme. I believe the solution may be some ifelse logic within geom_histogram(fill= ) but I don't know how to access the bin starting value. For example, in the below histogram, I would like to color revenue bins over $100,000 red to show the high-revenue customers. library(ggplot2) library(scales) n <- 10000 cust <- data.frame(cust_id=1:n,cust_rev