#==================== # Figure 13.3.R. # R script illustrating different # text positions in relation to # coordinates specified in the # text() command. #==================== x=c(2.5,1,1,4,4) y=c(2.5,1,4,4,1) plot(x,y,type="p",xlim=c(0,5),ylim=c(0,5)) text(x[2:5],y[2:5],c("bottom","left","top","right"),pos=1:4) text(x[1],y[1],c("overlay"))