[R] sm.options

Dieter Menne
Fri, 06 Mar 2009 08:14:03 -0000

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