glMDSPlot.default checks for any non-finite data and attempts to remove rows with any non-finite values. However, the code was missing a comma in the subsetting brackets, turning the data matrix into a numeric vector.
was: x <- x[!bad, drop = FALSE]
now: x <- x[!bad, , drop=FALSE]
glMDSPlot.default checks for any non-finite data and attempts to remove rows with any non-finite values. However, the code was missing a comma in the subsetting brackets, turning the data matrix into a numeric vector. was: x <- x[!bad, drop = FALSE] now: x <- x[!bad, , drop=FALSE]