MDSmap {BasketballAnalyzeR}R Documentation

Multidimensional scaling (MDS) in 2 dimensions

Description

Multidimensional scaling (MDS) in 2 dimensions

Usage

MDSmap(data, std = TRUE)

Arguments

data

a numeric matrix, data frame or "dist" object (see dist).

std

logical; if TRUE, data columns are standardized (centered and scaled).

Details

If data is an object of class "dist", std is not active and data is directly inputted into MASS::isoMDS.

Value

An object of class MDSmap, i.e. a list with 4 objects:

Author(s)

Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)

References

P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.

See Also

isoMDS, plot.MDSmap.

Examples

data <- with(Pbox, data.frame(PTS, P3M, P2M, REB=OREB+DREB, AST, TOV, STL, BLK))
selp <- which(Pbox$MIN >= 1500)
data <- data[selp, ]
id <- Pbox$Player[selp]
mds <- MDSmap(data)
plot(mds, labels=id, z.var="P2M", level.plot=FALSE, palette=rainbow)

[Package BasketballAnalyzeR version 0.5.0 Index]