Re: [R] Scatterplot color options in CAR package?

From: John Fox <jfox_at_mcmaster.ca>
Date: Thu 02 Feb 2006 - 01:43:46 EST


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@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Rick DeShon
> Sent: Wednesday, February 01, 2006 9:23 AM
> To: r-help@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@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



R-help@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 Received on Thu Feb 02 01:54:47 2006

This archive was generated by hypermail 2.1.8 : Thu 02 Feb 2006 - 08:29:24 EST