Hi Grant!
I very much enjoyed using 'tinyplot', so thanks for creating it!
But there are a few small things I've noticed.
Entering arrays works for base plot, but produces an error for tinyplot:
> x <- 1:10
> y <- array(1:10, c(1, 10))
> plot(x, y)
> tinyplot::tinyplot(x, y)
Error in .axisPars(usr, log = log, nintLog = nint) :
non-finite axis extents [GEPretty(-inf,inf, n=5)]
In addition: Warning messages:
1: In min(x, na.rm = na.rm) :
no non-missing arguments to min; returning Inf
2: In max(x, na.rm = na.rm) :
no non-missing arguments to max; returning -Inf
Making those 2 arrays a 'broadcaster' (a simple class from the 'broadcast' package) still works for base plot, but produces a different error for tinyplot:
> broadcaster(x) <- broadcaster(y) <- TRUE
> plot(x, y)
> tinyplot::tinyplot(x, y)
Error in `[.default`(xj, i, , drop = FALSE) : subscript out of bounds
Is tinyplot incompatible with arrays? If so, perhaps this can be made more clear in the error message.
Kind regards,
Tony
Hi Grant!
I very much enjoyed using 'tinyplot', so thanks for creating it!
But there are a few small things I've noticed.
Entering arrays works for base plot, but produces an error for tinyplot:
Making those 2 arrays a 'broadcaster' (a simple class from the 'broadcast' package) still works for base plot, but produces a different error for tinyplot:
Is tinyplot incompatible with arrays? If so, perhaps this can be made more clear in the error message.
Kind regards,
Tony