textxy {calibrate}R Documentation

Label points in a plot

Description

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.

Usage

textxy(X, Y, labs, cx = 0.5, dcol = "black", m = c(0, 0))

Arguments

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))

Value

NULL

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

Graffelman, J. (2006) A guide to biplot calibration.

See Also

text

Examples

x <- runif(50)
y <- runif(50)
plot(x,y)
textxy(x,y,1:50,m=c(mean(x),mean(y)))

[Package calibrate version 1.5 Index]