| xlim {ggplot2} | R Documentation |
Convenience function to set the limits of the x axis.
xlim(...)
... |
if numeric, will create a continuos scale, if factor or character, will create a discrete scale |
|
limits |
Hadley Wickham <h.wickham@gmail.com>
xlim(15, 20)
xlim(20, 15)
xlim(c(10, 20))
xlim("a", "b", "c")
qplot(mpg, wt, data=mtcars) + xlim(15, 20)