How can I set stat_y_continous in ggplot with min and max values of my variable and specific breaks? I have tried this, but I got an error ("Error in seq.default(min(df$NO3), max(df$NO3), by = 2) : 'from' must be a finite number"):
p + scale_y_continuous(limits = c(min(df$NO3),max(df$NO3)),
breaks=seq(min(df$NO3),max(df$NO3),by=2))