[R] matrix and error in points, plot ?
Patrick Giraudoux H
patrick.giraudoux at univ-fcomte.fr
Mon Jan 3 08:40:03 CET 2005
Hi,
Would a specialist of the "point" or "plot" functions try the following:
mat<-matrix(c(1.836767,4.025989,0.6396777,0.3764444),ncol=2)
plot(mat)
points(mat[1,],col="red")
..A lag appears on x for mat [1,1] between the two displays.
I wonder if this example may be due to a bug or to the mis-use of a matrix
in the plot() points() functions. In case of mise-use which kind can it be?
I am working with R 2.0.1 and Windows XP.
Cheers,
Patrick Giraudoux
More information about the R-help
mailing list