Re: [Rd] infelicity with axTicks

2025-06-22 Thread Spencer Graves
On 6/22/25 10:13, Duncan Murdoch wrote: On 2025-06-22 8:15 a.m., Spencer Graves wrote: 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]),

[Rd] infelicity with axTicks

2025-06-22 Thread Spencer Graves
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 =

Re: [Rd] infelicity with axTicks

2025-06-22 Thread Duncan Murdoch
On 2025-06-22 8:15 a.m., Spencer Graves wrote: 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" us