Re: [R] Round a line

From: Earl F. Glynn <>
Date: Sat 28 May 2005 - 00:13:16 EST

"Luis Ridao Cruz" <> wrote in message
> R-help,
> I have lloked in the archives found no answer to how to round the line
> joint.
> I have usedthe arguments lnd, ljoin in par but I get no differences in
> the plotting.
> x=1:10
> par(ljoin="round",lend="round")
> plot(x,sin(x),type="l",lwd=2)

On my Windows 2000 machine using R 2.1.0, par()$ljoin and par()$lend are already "round" by default. The par()$lmitre parameter is 10,

Paul Murrell's article "Fonts, lines, and transparency ..." in R News 4/2 (Sept 2004) gives some clues under "The end of the line":

"All lines are drawn using a particular style for line ends and joins, though the difference only becomes obvious when lines become thick."

Is it possible that with par()$lmitre at 10, and a lwd=2, you won't see any difference?

efg mailing list PLEASE do read the posting guide! Received on Sat May 28 00:36:53 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:11 EST