r - What do plot options `ljoin` and `lmitre` do? -


in r's ?par 2 options ljoin , lmitre documented. when setting them different values, not see difference. not understand description either. please provide illustrative example these options , when useful?

from 1 of older readmes:

’lend’, ’ljoin’, , ’lmitre’ control cap style , join style drawing lines (only noticeable on thick lines or borders). currently, postscript, pdf, x11, , quartz respond these settings.

so let's try

pdf("mitre.pdf") par(ljoin=0) y=c(0,1,0,5,0) plot(y,lwd=20,type="l",ylim=c(0,10)) par(ljoin=1) lines(y+2,lwd=20,type="l") par(ljoin=2) lines(y+4,lwd=20,type="l") dev.off() 

enter image description here

and here real mitre (never have used it)

pdf("realymitre.pdf") par(ljoin=1) # lmitre active ljoin=1 y=c(0,30,0) x=c(-1:1) plot(x, y,lwd=10,type="l",ylim=c(0,40),xlim=c(-20,20)) par(ljoin=1, lmitre=30) # default lmitre=10 lines(x+4,y,lwd=10,type="l",ylim=c(0,40)) dev.off() 

enter image description here


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -