hadley/ggplot2 — Issue #383: fix oob argument for scales
Author: garrettgman
Created: 2012-02-02 16:48:49+00:00
State: open

Currently the out of bounds parameter appears to have no effect and perhaps a bug. These all produce the same graph:

qplot(rep(100,100)) + scale_y_continuous(limits = c(0,10), oob = clip)
qplot(rep(100,100)) + scale_y_continuous(limits = c(0,10), oob = "clip")
qplot(rep(100,100)) + scale_y_continuous(limits = c(0,10), oob = "censor")

And this produces an error

qplot(rep(100,100)) + scale_y_continuous(limits = c(0,10), oob = censor)
Error in structure(list(call = match.call(), aesthetics = aesthetics, :
object 'censor' not found