Skip to content
Back to formatted view

Raw Message

Message-ID: <20050412135725.85A2CCC58@slim.kubism.ku.dk>
Date: 2005-04-12T15:57:39Z
From: Jari Oksanen
Subject: MASS: isoMDS drops names of points in R-2.1.0 (PR#7786)

Full_Name: Jari Oksanen
Version: 2.1.0
OS: Linux & MacOS X
Submission from: (NULL) (130.231.102.145)


isoMDS (MASS) drops names of points. The reason seems to be that R-2.1.0
abandoned names.dist that isoMDS uses to get the Labels attribute of dist
object:

    points <- matrix(tmp$y, , k)
    rn <- if (is.matrix(d))
        rownames(d)
    else names(d)   # This does not work any longer
    dimnames(points) <- list(rn, NULL)
    list(points = points, stress = tmp$val)

The solution is obvious but not very elegant.