You have forgotten drop=FALSE in mat[1,]: take a look at what it produces.
See ?Extract for more details.
On Mon, 3 Jan 2005, Patrick Giraudoux H wrote:
Would a specialist of the point or plot functions try the following:
mat-matrix(c(1.836767,4.025989,0.6396777,0.376),ncol=2)
plot(mat)
Patrick Giraudoux H wrote:
Hi,
Would a specialist of the point or plot functions try the following:
mat-matrix(c(1.836767,4.025989,0.6396777,0.376),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