textxy {calibrate} | R Documentation |
Function textxy calls function text in order to add text to points in a graph. textxy chooses a different position for the text depending on the quadrant. This tends to produces better readable plots.
textxy(X, Y, labs, cx = 0.5, dcol = "black", m = c(0, 0))
X |
x coordinates of a set of points |
Y |
y coordinates of a set of points |
labs |
labels to be placed next to the points |
cx |
character expansion factor |
dcol |
colour for the labels |
m |
coordinates of the origin of the plot (default (0,0)) |
NULL
Jan Graffelman (jan.graffelman@upc.edu)
Graffelman, J. (2006) A guide to biplot calibration.
x <- runif(50) y <- runif(50) plot(x,y) textxy(x,y,1:50,m=c(mean(x),mean(y)))