idplot {lazy.tools}R Documentation

plot X[,1:2] with id

Description

plot X[,1:2] with id

Usage

idplot(X, id = NULL, type = "n", asp = 1, pos = NULL, cex = 1, col = NULL, ...)

Arguments

X

matrix whose rows will be plotted

id

id of the rows of X

type

type of the plot

asp

aspect ratio

pos

position of the text

cex

size of the text

col

color of the text

...

additional graphical paramaters to text function

Details

Equivalent to:

plot( X[,1:2], type="n", asp=1 )
text( X[,1],X[,2], labels=id, ... )

Value

none

Examples

 X=matrix(c(
-1,  1,  0,  1,  1,    1, -1,   0, 0,  0, 1, 0, -1, -1, 0, -1, 1, -1
, -.5,  .5, .5,  .5, -.5,  -.5, .5,  -.5, -2,  0, 2,  0
),,2,byrow=1)
idplot(X, id=paste("s",1:nrow(X),sep=""))
idplot(X, id=paste("s",1:nrow(X),sep=""), pos=1)
idplot(X, id=paste("s",1:nrow(X),sep=""), pos=2, cex=2)


[Package lazy.tools version 1.0.0.20260516 ]