Dear Aimin,
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Aimin Yan
> Sent: February-11-08 7:22 AM
> To: r-help at r-project.org
> Subject: [R] scatterplot in CAR
>
> I am trying to use scatterplot function in CAR like the following:
>
> scatterplot(X~Y)
>
> I want to label X points and Y ponits using the different color.
> Any idea for this?
>
> Aimin
I'm afraid that I don't understand the question: scatterplot(X~Y) will
make
a scatterplot with the variable X on the vertical axis and Y on the
horizontal axis. Did you really want to do that? Moreover, as in any
scatterplot, the variables Y and X will define the coordinates of the points
-- there are not distinct X points and Y points.
Regards,
John
--------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
905-525-9140x23604
http://socserv.mcmaster.ca/jfox