// Noticed that the array I created for K means is not the same as that for PCA.
maples2003_array===maples2003_pca_array
maples2003PCA=newML.PCA(maples2003_pca_array)
maples2003PCA.getExplainedVariance()
maples2003PCA.getCumulativeVariance()
viewofloadings
viewofscores
scaling_factor=5
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.