| 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   | 
std | 
 logical; if TRUE,   | 
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:
-  
points, a 2-column vector of the fitted configuration (seeisoMDS); 
-  
stress, the final stress achieved in percent (seeisoMDS); 
-  
data, the input data frame; 
-  
std, the logicalstdinput. 
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
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]