[Rd] infelicity with axTicks

Spencer Graves @pencer@gr@ve@ @end|ng |rom prod@y@e@com
Sun Jun 22 14:15:11 CEST 2025


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?


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



More information about the R-devel mailing list