ggplot2 (version 0.9.0)

ylim: Convenience function to set the limits of the y axis.

Description

Convenience function to set the limits of the y axis.

Usage

ylim(...)

Arguments

...
if numeric, will create a continuous scale, if factor or character, will create a discrete scale.

Examples

Run this code
ylim(15, 20)
ylim(c(10, 20))
ylim("a", "b", "c")
qplot(mpg, wt, data=mtcars) + ylim(15, 20)

Run the code above in your browser using DataLab