[R] Do not understand: log10(-0.04)

Thomas Hoffmann thoffman at zappa.sax.de
Sat Feb 1 01:45:03 CET 2003

I ran into some mysterious crashes of R and when stepping through the 
code it appeared to me that a call to


(as e.g. in do_plot_new(), plot.c:458 )

possibly with min=-0.04 runs into (graphics.c:1911)

    Rf_gpptr(dd)->logusr[0] = Rf_dpptr(dd)->logusr[0] = log10(min);

which should end up with a domain error.

As I cannot reproduce this fully, I asked myself if there is some 
mysterious handling of this situation.

Can anybody explain this to me?


More information about the R-help mailing list