Filters X-axis for consecutive breaks with at least the specified distance.
Usage
filter_breaks(breaks = NA, plot = plot, min_cm_distance = 0.5, axis = "x")
Arguments
- plot
A ggplot object used to extract plot dimensions and scales.
- min_cm_distance
A numeric of the minimum distance between breaks.
- x_breaks
A numeric vector of x-axis breaks.
Value
A numeric vector of filtered x-axis breaks.