EXAMPLE: ylims2 <- c(0.2, 0.8) get_axp <- function(x) 10^c(ceiling(x[1]), floor(x[2])) ## mimic par("yaxs") == "i" usr.i2 <- log10(ylims2) (aT.i2 <- axTicks(side = 2, usr = usr.i2, axp = c(get_axp(usr.i2), n = 3), log = TRUE, nintLog = 5)) #[1] 0.2 0.5 Thanks, Spencer Graves ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
If the range fed to axTicks is too narrow, the output is only 2 points;
shouldn't it degenerate to using "pretty" in such cases?
- [Rd] infelicity with axTicks Spencer Graves
- Re: [Rd] infelicity with axTicks Duncan Murdoch
- Re: [Rd] infelicity with axTicks Spencer Graves
- Re: [Rd] infelicity with axTicks Martin Maechler