karine heerah
2014-Jan-13 03:26 UTC
[R] how to change the color of the regression line when using effect function
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]]
David Winsemius
2014-Jan-13 04:35 UTC
[R] how to change the color of the regression line when using effect function
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:> ?effectNo documentation for ?effect? in specified packages and libraries: you could try ???effect? Even trying ??"effect" was not very helpful. -- David Winsemius Alameda, CA, USA
karine heerah
2014-Jan-13 04:41 UTC
[R] how to change the color of the regression line when using effect function
Hi all, Do you know how to change the color of the regression line, confidence interval etc. when plotting the "effect" function: library(effects) plot(effect("explanatory variable", 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]]