Re: [R] Round a line

2005-05-27 Thread Uwe Ligges

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  
major2  
minor1.0
year 2005   
month04 
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


Re: [R] Round a line

2005-05-27 Thread Earl F. Glynn
Luis Ridao Cruz [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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:
http://cran.stat.auckland.ac.nz/doc/Rnews/Rnews_2004-2.pdf



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

__
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