Viviana Ruiz <vivruiz <at> gmail.com> writes: > I am doing kernel density plots, and am trying to make the lines thicker. I > comparing three groups, in sm.density.compare. I tried changing lwd to make > the line sthicker right on the density compare call, but was not able to do > it. There is not an option in sm.options to specify line thickness, as well > as cex.ylab or cex.xlab- I tried it and it does not change the thickness of > the lines. Does anyone know how to do this? >
If you pring sm.density.compare (without the ()), you will notice that lwd is not passed to the lines() function, nor are ... parameters available. So the only choice is to globally set par(lwd=2) Which give a result that looks reasonable for a slide. Dieter ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.