Re: [R] Round a line

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri 27 May 2005 - 23:03:31 EST

Luis Ridao Cruz wrote:

> 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)
>
>
> Any suggestions?

Well, round is the default! You have to zoom in or make even thicker lines. Hence you might want to try out the folowing to see differences:

   x <- 1:10
   par(mfrow = c(1, 2))
   plot(x, sin(x), type="l", lwd=10)
   par(ljoin="mitre", lend="butt")
   plot(x, sin(x), type="l", lwd=10)

Uwe Ligges

> I run on a Windows XP machine.
>
>

>>version

>
> _
> platform i386-pc-mingw32
> arch i386
> os mingw32
> system i386, mingw32
> status
> major 2
> minor 1.0
> year 2005
> month 04
> day 18
> language R
>
> Thank you in advance
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 27 23:06:55 2005

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