| MDSmap | R Documentation |
Multidimensional scaling (MDS) in 2 dimensions
MDSmap(data, std = TRUE)
data |
a numeric matrix, data frame or |
std |
logical; if TRUE, |
If data is an object of class "dist", std is not active and data is directly inputted into MASS::isoMDS.
An object of class MDSmap, i.e. a list with 4 objects:
points, a 2-column vector of the fitted configuration (see isoMDS);
stress, the final stress achieved in percent (see isoMDS);
data, the input data frame;
std, the logical std input.
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)
P. Zuccolotto and M. Manisera (2020) Basketball Data Science: With Applications in R. CRC Press.
isoMDS, plot.MDSmap.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.