[R] how to label lines

From: derek <jan.kacaba_at_gmail.com>
Date: Sat, 12 Mar 2011 08:16:21 -0800 (PST)


Hello R
I can not figure out, how to add text string or number to lines like on this image:
http://r.789695.n4.nabble.com/file/n3350452/graph.png I have some data series in text file.

My script:

require(graphics)
require(stats)
graf=read.table("file",header =FALSE,sep = "", dec = ",",fileEncoding = "", encoding = "unknown", skip=19,nrows=400) attach(graf)
plot(V1,V2,type = "l",main = "name",xlab = substitute(lambda (nm)), ylab =substitute(A))

lines(V3,V4)
lines(V5,V6)
lines(V7,V8)
lines(V9,V10)
lines(V11,V12)
lines(V13,V14)
lines(V15,V16)
lines(V17,V18)
lines(V19,V20)
lines(V21,V22)


--
View this message in context: http://r.789695.n4.nabble.com/how-to-label-lines-tp3350452p3350452.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 Sat 12 Mar 2011 - 19:11:58 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 Sun 13 Mar 2011 - 02:30:20 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