ylim {ggplot2}R Documentation

Set y limits

Description

Convenience function to set the limits of the y axis.

Usage

ylim(...)

Arguments

...

if numeric, will create a continuos scale, if factor or character, will create a discrete scale

limits

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

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

[Package ggplot2 version 0.8.9 Index]