I am creating a line chart in ggplot2 with a continuous y-axis but I would like to change the labels to strings to represent bounds, is this possible?
For example, I want all values V<10 = A, 10>V<20 = B, and V>20 = C.
Y<-c(5,15,12,8,12,13,19,24)
Day<-c(1,2,3,4,5,6,7,8)
data <- data.frame(Y, Day)
ggplot(data= data, aes(x=Day, y=Y, group=1))+geom_line()+geom_point()
The label of 10 would be replaced by A, 20 by B and so on.