2013-04-14 50 views

回答

2

可以使用相同的參數,在其他基地繪圖函數 - col=的顏色和lty=爲線型。

library(sm)  
y <- rnorm(100) 
g <- rep(1:2, rep(50,2)) 
sm.density.compare(y, g,col=c("blue","black"),lty=c(4,6)) 

enter image description here