I am trying to find a way to set the default x axis breaks at 0, 20, 40, 60, 80 when plotting using ggplot, and automatically name the x axis time [days], without having to specify this in every single plot.
is this possible, and how would it be possible?
i have tried running this in the beginning of my script, but it resulted in an error due to infinite recursion:
scale_x_continuous<- function(...) {
scale_x_continuous(..., name = "time [days]", breaks = c(0, 20, 40, 60, 80))
}
