hadley/ggplot2 — Issue #403: minor_breaks function ignored
Author: baptiste
Created: 2012-02-12 09:40:18+00:00
State: open

```r

## setting numeric values for minor_breaks works:

qplot(10^(1:6), 10^(1:6)) + scale_x_log10(breaks = 10^(1:6),
minor_breaks = log(c(sapply(10^(1:6), function(x) seq(0, x, x/10))), 10)))

## but a function is ignored:

qplot(10^(1:6), 10^(1:6)) + scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x, n=6) ,
minor_breaks = trans_breaks("log10", function(x) 10^x, n=60) )

```

the minor breaks disappear entirely.