This is a convenience function to visualize x ranges with gray vertical boxes in a plot (typically one generated by iso_plot_data) by specifying a simple filter condition. Considers the facet variables (if any are set) to evaluate the condition within each panel.

iso_mark_x_range(p, condition, color = NA, fill = "gray", alpha = 0.25)

Arguments

p

a ggplot object, typically generated by iso_plot_data

condition

any filter expression to identify x ranges to mark

color

color of the shading boxes

fill

fill of the shading boxes

alpha

alpha of the shading boxes

See also