This function creates a 3D scatter plot of PCA scores using Plotly. It allows for optional coloring by a variable.
Arguments
- PCAObj
A list containing PCA results, including a
Scores
matrix with PCA scores and aCombinedData
dataframe with the original data.- Var
An optional string specifying the variable name in
CombinedData
to color the points by. Default isNULL
.- t
An optional string specifying the type of variable for coloring:
"Factor"
for categorical variables or anything else for continuous variables. Default is"NULL"
.