Relative Content

Tag Archive for rggplot2axisplot-annotations

Placing annotations outside of a ggplot2 plot when the axis is categorical

I want to add two arrows with corresponding text to the outside of the Y axis in a ggplot2 plot, but the X axis is a categorical variable, and I have only found solutions (implemented below) when both variables are numerical. Is there a way to do this when one or both of them are categorical?