[R] Scatterplot color options in CAR package?

John Fox jfox at mcmaster.ca
Wed Feb 1 15:43:46 CET 2006


Dear Rick,

Setting par(col="red") will change the axes, frame, and tick labels, to red.
Setting par(col.lab="red") will change the axis label to red as well. For
more information, and possibly other relevant graphical parameters, see
?par.

I hope this helps,
 John

--------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario
Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox 
-------------------------------- 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Rick DeShon
> Sent: Wednesday, February 01, 2006 9:23 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Scatterplot color options in CAR package?
> 
> Hi All.
> 
> I'd like to change the default plotting colors used to 
> construct a scatterplot with regression line in the CAR package.
> 
> So,
> 
> scatterplot(y~pred,smooth=FALSE, xlab="X", ylab="Y", lwd=2)
> 
> If I change the palette (e.g., palette(ranbow(6)), I can 
> change the color of the lines and points.
> 
> However, the axes and labels remain in black (i.e., the first 
> color in the default palette).
> 
> Is there a way to change the color used to when forming the 
> axes, labels, and ticks in the Scatterplot routine?
> 
> Thanks in advance for any ideas!
> 
> Rick
> 
> 
> 
> --
> Rick DeShon
> 306 Psychology Building
> Department of Psychology
> Michigan State University
> East Lansing, MI 48824-1116
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list