s-news
[Top] [All Lists]

[S] lines() problem

To: "'s-news'" <s-news@wubios.wustl.edu>
Subject: [S] lines() problem
From: David Maxwell FSMG CEFAS <D.L.Maxwell@cefas.co.uk> (DN=DLM00, RECIPIENTS, LOWESTOFT, CEFAS)
Date: Fri, 25 Jun 1999 18:41:37 +0100
Alternate-recipient: Allowed
Original-encoded-information-types: ia5-text,joint (2) mhs (6) (3) (4) (2)
Sender: owner-s-news@wubios.wustl.edu
X400-content-type: P2-1988 (22)
X400-mts-identifier: [/PRMD=MAFF400/ADMD=ATTmail/C=GB/;LOWNTS-990625174137Z-13929]
X400-originator: D.L.Maxwell@cefas.co.uk
X400-received: by mta parker in /PRMD=MAFF400/ADMD=ATTmail/C=GB/; Relayed; Fri, 25 Jun 1999 17:41:25 +0100
X400-received: by mta scott in /PRMD=MAFF400/ADMD=ATTmail/C=GB/; Relayed; Fri, 25 Jun 1999 17:41:46 +0100
X400-received: by mta LOWNTS in /PRMD=MAFF400/ADMD=ATTmail/C=GB/; Relayed; Fri, 25 Jun 1999 18:41:37 +0100
X400-recipients: non-disclosure:;
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.

Thank you, David.
d.l.maxwell@cefas.co.uk


-----------------------------------------------------------------------
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

<Prev in Thread] Current Thread [Next in Thread>
  • [S] lines() problem, David Maxwell FSMG CEFAS <=