The result of> plot(c(-1,1),c(-1,1),type="n") > arrows(0,0,1,1) > arrows(0,0,0,0)is not what I expected. The first arrow is drawn correctly. The second does not collapse to a point but goes from (0,0) off to (-infinity,infinity). I guess something is divided by zero in the internal function. Chris. ==============================================platform Windows arch x86 os Win32 system x86, Win32 status major 1 minor 1.0 year 2000 month June day 15 language R -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Ritter, Christian C SRTCL-CTGAS" <Christian.C.Ritter at OPC.shell.com> writes:> The result of > > plot(c(-1,1),c(-1,1),type="n") > > arrows(0,0,1,1) > > arrows(0,0,0,0) > is not what I expected. The first arrow is drawn correctly. The second > does not collapse to a point but goes from (0,0) off to > (-infinity,infinity). > I guess something is divided by zero in the internal function.R-1.1.1 on Linux behaves OK (if a lonely arrowhead at (0,0) pointing left is OK) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA wrote:> > "Ritter, Christian C SRTCL-CTGAS" <Christian.C.Ritter at OPC.shell.com> writes: > > > The result of > > > plot(c(-1,1),c(-1,1),type="n") > > > arrows(0,0,1,1) > > > arrows(0,0,0,0) > > is not what I expected. The first arrow is drawn correctly. The second > > does not collapse to a point but goes from (0,0) off to > > (-infinity,infinity). > > I guess something is divided by zero in the internal function. > > R-1.1.1 on Linux behaves OK (if a lonely arrowhead at (0,0) pointing > left is OK)Hmmm. R-1.1.1 on WinNT behaves OK (if plotting nothing is OK, ^^^^^^^ as the length of the arrow also should be 0). Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
At 14:06 06/09/00 +0200, you wrote:>"Ritter, Christian C SRTCL-CTGAS" <Christian.C.Ritter at OPC.shell.com> writes: > >> The result of >> > plot(c(-1,1),c(-1,1),type="n") >> > arrows(0,0,1,1) >> > arrows(0,0,0,0) >> is not what I expected. The first arrow is drawn correctly. The second >> does not collapse to a point but goes from (0,0) off to >> (-infinity,infinity). >> I guess something is divided by zero in the internal function. > >R-1.1.1 on Linux behaves OK (if a lonely arrowhead at (0,0) pointing >left is OK)Strange, on WinNT R-1.1.1, I get nothing, i.e.: > plot(c(-1,1),c(-1,1),type="n") > arrows(0,0,0,0) draws nothing but the axes. Emmanuel Paradis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._