Entering edit mode
11.8 years ago
Assa Yeroslaviz
★
1.8k
Hi,
I am doing a 3d pca in R and would like to add the names of the groups to the image.
popn <- round(pca$x[,1])
colour <- popn - min(popn) + 1
pc <- princomp(NormalisedResult)
plot3d(pca$x[,1:3], col=colour, size=5.0)
this is how I create the plot.
When I am using the text3d command to add some text it fails.
text3d=(texts=fileName,col="blue")
Error: unexpected ',' in "text3d=(texts=fileName,"
doing it w.o. the col option give no error, but I can't see any text on the image.
Is there a way of adding the column names to the plot?
Thanks Assa