Re: [R] scatterplot in CAR

From: John Fox <jfox_at_mcmaster.ca>
Date: Mon, 11 Feb 2008 08:02:50 -0500

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

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. Received on Mon 11 Feb 2008 - 13:11:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 11 Feb 2008 - 13:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive