> points(x[4,],pch=2)# this is plotted as two points

drops what it sees as an unnecessary dimension.

Use

> points(x[4,, drop=FALSE], pch=2)

See FAQ 7.5

tmp <- matrix(1:2)
tmp
tmp[,1]
tmp[,1,drop=FALSE]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to