r - Error in text3d, unused argument -


i keep getting error in text3d, when use other people's tutorials instead of own data - such site: http://planspace.org/2013/02/03/pca-3d-visualization-and-clustering-in-r/. example code errors below. plot3d appears work fine, ideas missing text3d?

thanks!

library(rgl) plot3d(pc$scores[,1:3]) text3d(pc$scores[,1:3],texts=rownames(iris)) #error in text3d(pc$scores[, 1:3], texts = rownames(iris)) :  #  unused argument (texts = rownames(iris)) text3d(pc$loadings[,1:3], texts=rownames(pc$loadings), col="red") #error in text3d(pc$loadings[, 1:3], texts = rownames(pc$loadings), col = "red") :  #  unused argument (texts = rownames(pc$loadings)) coords <- null (i in 1:nrow(pc$loadings)) {   coords <- rbind(coords, rbind(c(0,0,0),pc$loadings[i,1:3])) } lines3d(coords, col="red", lwd=4) 

r version update 3.1.3 answer (was running r version 3.0.2). thanks!


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -