hadley/ggplot2 — Issue #420: coord_trans() sometimes has problems with geom_area and geom_bar
Author: wch
Created: 2012-02-29 21:39:09+00:00
State: open

I was taking a look at #257, and experimenting with `coord_trans(y="log10")` instead of using `scale_y_log10()`. But it doesn't seem to work with some geoms and some transform functions.

```R
dat <- data.frame(group=rep(LETTERS[1:4], each=3),
x=rep(1:3,4),
y=rep(10^(1:3),4))

p <- ggplot(dat, aes(x=x, y=y, fill=group))

# OK: area + sqrt
p + geom_area() + coord_trans(y="sqrt")

# error: area + log10
p + geom_area() + coord_trans(y="log10")

# error: bar + sqrt
p + geom_bar() + coord_trans(y="sqrt")

# error: bar + log10
p + geom_bar() + coord_trans(y="log10")

# OK: point + sqrt
p + geom_point() + coord_trans(y="sqrt")

# OK: point + log10
p + geom_point() + coord_trans(y="log10")
```