This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: tree.
text(x, ...)text.default(x, y, labels=seq(along=x), cex=par("cex"), col=par("col"))
Graphical parameters may also be supplied as arguments to this function (see par).
If the lengths of x, y, labels, cex, and col are not identical, the shorter vectors are reused cyclically.
The text function can be used after plot(x,y,type="n") which draws axes and the surrounding box without plotting the data.
plot(x, y, type="n") text(x, y) #plot i at (x[i], y[i])plot(x1, f1, type="l"); lines(x2, f2) text(.3, .7, "function 1"); text(.3, .4, "function 2")