Is this something like what you want?
# make test data
x=1:10; y=x; names(y)=letters[1:length(y)]
# Now plot
plot(x, y, pch='', xlab='ValAddInd_byYear',
ylab='Cons_Elec_Ind_byYear')
text(x,names(y),1:length(x),cex=0.6)
HTH,
Rob
____________________________
Robert W. Baer, Ph.D.
Associate Professor
Department of Physiology
A. T. Still University of Health Science
800 W. Jefferson St.
Kirksville, MO 63501-1497 USA
----- Original Message -----
From: "Anne Katrin Heinrichs" <heinrichs at dkrz.de>
To: <r-help at stat.math.ethz.ch>
Sent: Wednesday, February 15, 2006 11:43 AM
Subject: [R] labelling dots in plots
> Hello,
>
> I would like to label outliers (or all dots) in a plot
>
> plot(as.matrix(ValAddInd_byYear), as.matrix(Cons_Elec_Ind_byYear))
>
> ideally by the 30 different row.names, but anything else (x or y values,
for example)> would already be helpful.
> I've tried various things with pch, but they didn't work and I
can't find
anything else.>
> Any hint appreciated!
> Thanks,
>
> Katrin
>
> ______________________________________________
> 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>