[R] scatter plot question

Dipankar Basu
Tue, 03 Mar 2009 19:11:00 -0000

Hi R Users,

I have a dataframe like this:

id  x   rho
A  1   0.1
B  20  0.5
C  2   0.9
...

I want to do a scatter plot of "x" versus "rho" but for each
point on the
scatter plot I want the corresponding entry for "id" instead of
points. In
STATA I can do so by

twoway (scatter x rho, mlabel(id))

How can I do the same in R? I am sure there is some simple way to do this.

Dipankar

	[[alternative HTML version deleted]]