Label minimum and maximum of scale fill gradient legend with text: ggplot2
I have a plot created in ggplot2 that uses scale_fill_gradientn . I'd like to add text at the minimum and maximum of the scale legend. For example, at the legend minimum display "Minimum" and at the legend maximum display "Maximum". There are posts using discrete fills and adding labels with numbers instead of text (e.g. here ), but I am unsure how to use the labels feature with scale_fill_gradientn to only insert text at the min and max. At the present I am apt to getting errors: Error in scale_labels.continuous(scale, breaks) : Breaks and labels are different lengths Is this text label