# Use with ggplot2
df <- data.frame(year = 1977:2023, value = rnorm(47))
library(ggplot2)
ggplot2::ggplot(data=df, ggplot2::aes(x = value, y = year)) +
ggplot2::geom_line() +
scale_y_tickr(data = df, var = year, by = 5)
Run the code above in your browser using DataLab