[R] sm.options

Dieter Menne dieter.menne at menne-biomed.de
Fri Mar 6 09:14:03 CET 2009

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

So the only choice is to globally set


Which give a result that looks reasonable for a slide.


More information about the R-help mailing list