[R] how to change the color of the regression line when using effect function

Ista Zahn istazahn at gmail.com
Mon Jan 13 05:49:26 CET 2014

Hi Karine,

Yes, please do follow Davids advice in the future.

The answer to your question about colors is in the effects package
documentation. Please see ?plot.eff, particularly the "color"


On Sun, Jan 12, 2014 at 11:35 PM, David Winsemius
<dwinsemius at comcast.net> wrote:
> On Jan 12, 2014, at 7:26 PM, karine heerah wrote:
>> Hi all,
>> Do you know how to change the color of the regression line, confidence interval etc. when plotting the "effect" function:
>> plot(effect("explanatory varible", model.name),xlab,ylab....)
>> I tried to include the "col" argument of the plot function but it didn't work.
>> Thanks,Karine
>>       [[alternative HTML version deleted]]
> A) You should post in plain text.
> B) You should precede your code with a library() call that loads the package where the effect() function resides. This is especially needed when the name "effect" is such a ubiquitous word in statstical documentation:
>> ?effect
> No documentation for ‘effect’ in specified packages and libraries:
> you could try ‘??effect’
> Even trying ??"effect" was not very helpful.
> --
> David Winsemius
> Alameda, CA, USA
> ______________________________________________
> R-help at 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.

More information about the R-help mailing list