ylim {ggplot2} | R Documentation |
Convenience function to set the limits of the y axis.
ylim(min=NA, max=NA)
min |
lower limit |
max |
upper limit |
Works by creating a new continuous scale, so will only work for continuous variables.
Hadley Wickham <h.wickham@gmail.com>
qplot(mpg, wt, data=mtcars) + ylim(15, 20)