Creates an interactive 3-D scatter plot of PCA scores with Plotly. You can colour points by a variable and customise the hover label.
Arguments
- PCAObj
A list containing:
Scores– a matrix/data-frame with the PCA scores.CombinedData– the original data used to calculate the PCA.
- Var
(string) Optional variable in
CombinedDatato colour by. Default:NULL(no colouring).- t
(string) If colouring, set to
"Factor"for categorical; anything else is treated as continuous. Default:"NULL".- HoverVar
(string) Optional variable in
CombinedDatawhose value will be displayed on hover. Default:NULL, which shows the row number.
