Off topic:Add Labels To Groups In Plot3D
1
0
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

plot • 6.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2073 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6