3D Biplot in plotly - R
问题 I want to build a 3D PCA bi-plot using plotly package because the graph is nice and interactive in html format (something that I need). My difficulty is to add the loading. I want the loading to be presented as straight lines from the point (0,0,0) (i.e. the equivalent to 2D biplots) So all in all I don't know how to add straight lines starting from the centre of the 3D graph. I have calculated the scores and loading using the PCA function; pca1 <- PCA (dat1, graph = F) for scores: ind1 <-