Displaying 3 results from an estimated 3 matches for "xuin".
Did you mean:
xin
2011 Jun 01
1
weird error from MASS::eqcsplot with postscript driver
[Env: R 2.12.2, Win XP]
I'm creating figures using MASS::eqcsplot to provide equal scaling of
the axes. My figures work OK
when I plot to the screen, but when I try to do the same plot as a
postscript file, I get an
unexplicable error,
> figframe()
Error in if (yuin > xuin * ratio) yuin <- xuin * ratio else xuin <-
yuin/ratio :
missing value where TRUE/FALSE needed
> traceback()
2: eqscplot(x = 0, y = 0, xlim = xlim, ylim = ylim, xlab = xlab,
ylab = ylab, type = "n")
1: figframe()
>
Here is a minimal source script exhibiting the p...
2001 Nov 08
0
eqscplot() in library MASS: fails when given only one point (PR#1162)
...im values
After inserting browser() just before the last line in eqscplot() (in which
plot() gets called), I found the following:
> eqscplot(x=1, y=1)
Called from: eqscplot(x = 1, y = 1)
Browse[1]> xlim
[1] NaN NaN
Browse[1]> ylim
[1] NaN NaN
This results from the lines 35 and 36:
xuin <- oxuin <- oldpin[1]/diff(xlim)
yuin <- oyuin <- oldpin[2]/diff(ylim)
which will give Inf values, since diff(xlim) and diff(ylim) will be zero at
that point (xlim and ylim containing c(1, 1) in this case).
I can't propose a patch, though, since I haven't the time to reall...
2001 Nov 09
0
eqscplot() in library MASS: fails when given only one point (PR#1164)
...e in eqscplot() (in which
> plot() gets called), I found the following:
>
> > eqscplot(x=1, y=1)
> Called from: eqscplot(x = 1, y = 1)
> Browse[1]> xlim
> [1] NaN NaN
> Browse[1]> ylim
> [1] NaN NaN
>
>
> This results from the lines 35 and 36:
>
> xuin <- oxuin <- oldpin[1]/diff(xlim)
> yuin <- oyuin <- oldpin[2]/diff(ylim)
>
> which will give Inf values, since diff(xlim) and diff(ylim) will be zero at
> that point (xlim and ylim containing c(1, 1) in this case).
>
> I can't propose a patch, though, since I h...