[Rd] bug in plot.table(..., log='y')?
Spencer Graves
@pencer@gr@ve@ @end|ng |rom prod@y@e@com
Sat May 28 17:33:47 CEST 2022
Dear R Developers:
Consider the following example:
(tstTable <- table(rep(1:3, 3:1)))
plot(tstTable)
plot(tstTable, log='y')
"plot(tstTable)" works as expected. "plot(tstTable, log='y')" gives
a warning:
Warning message:
In plot.window(...) :
nonfinite axis=2 limits [GScale(-inf,0.477121,..); log=TRUE] --
corrected now
AND the plot has a y axis scale running from 1e-307 to 1e+13.
This is with R 4.2.0 (R Console and the current RStudio) under macOS
11.6.6.
"plot(as.numeric(names(tstTable), as.numeric(tstTable), log='y'))"
works as expected ;-)
Comments?
Thanks for your valuable work in making it easier for people
everywhere to do quality statistics.
Spencer Graves
> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.6.6
Matrix products: default
LAPACK:
/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0 knitr_1.39 xfun_0.30
More information about the R-devel
mailing list