[18935] in s-news-athena
[S] Summary: lines() problem
daemon@ATHENA.MIT.EDU (David Maxwell FSMG CEFAS)
Fri Aug 13 12:11:52 1999
Date: Fri, 13 Aug 1999 18:05:34 +0100
From: David Maxwell FSMG CEFAS <D.L.Maxwell@cefas.co.uk> (DN=DLM00, RECIPIENTS,
LOWESTOFT, CEFAS)
Message-Id: <"/GUID:78CD7F4EAC50D311A6460000F84AA40F*"@MHS>
To: "'s-news'" <s-news@wubios.wustl.edu>
Sometime ago I reported lines( type="l") and lines(type="b") could produce different shaped lines for the same data in v4.5 r2.
Anona Thorne told me this bug isn't present in v3.4. David Smith of Mathsoft confirmed the bug is present in S-PLUS 2000 on Windows and reported it to the appropriate address.
Thank you, David Maxwell
d.l.maxwell@cefas.co.uk
Centre for Environment Fisheries and Aquaculture Science, Lowestoft, UK.
+44 (0) 1502 562244
#############################
In my opinion, this is a bug. The graph produced with type="l" is
incorrect, and I can confirm that this also occurs with the newly-released
S-PLUS 2000 on Windows.
I have copied this message to bugs@statsci.com so that this bug will be
flagged for future attention.
David M Smith (dsmith@mathsoft.co.uk)
################################
I use Splus 3.4 on Unix, and I just tried your example and found that the lines are the same shape.
Anona Thorne
##################
> Sent: 25 June 1999 18:42
> To: 's-news'
> Subject: [S] lines() problem
>
> Using SPlus 4.5 r2 on Win95,
>
> I have noticed that lines( ..., type="l") and lines(...,
> type="b") treat points outside the y-limits differently and
> therefore produce different lines for the same data. Is this
> a well-known 'feature' ?
>
> A simple example of this:
>
> par(mfrow=c(2,1))
>
> plot(0, 0, type="n", xlim=c(1,6), ylim=c(2,6) )
> lines(1:6, c(3,0,3,8,2,4), type="l" )
>
> plot(0, 0, type="n", xlim=c(1,6), ylim=c(2,6) )
> lines(1:6, c(3,0,3,8,2,4), type="b" )
>
>
> I would like type="l" to produce the same shape line as
> type="b" does. I've been using type="b", cex=0.001 as a
> quick way round it. Any other suggestions (except changing
> the y-limits :o) ) would be welcome.
>
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news