Wednesday, January 9, 2019

Shapes for the ends and joins of lines

Shapes for the ends and joins of lines

plot(0:10,0:10,type="n",xlab="",ylab="")
> lines(c(2,5,8),c(8,2,8),lwd=50,lend="square",ljoin="mitre")
> lines(c(2,5,8),c(8,2,8),col="green",lwd=50,lend="round",ljoin="round")
> lines(c(2,5,8),c(8,2,8),col="blue",lwd=50,lend="butt",ljoin="bevel")
https://www.r-languagestatistics.co

No comments:

Post a Comment

Black-Scholes formula-R

 Black-Scholes formula-R > BlackScholes <- function(TypeFlag = c("c", "p"), S, X, Time, r, b, sigma) { TypeFla...