STHDA forum

Plotting, data visualizations » adding text3d length error for text3d

Slingshot booster

rank_0.png

Avatar

Signed up since: 30/05/2018

Messages: 2

On 08/15/2018 at 02h03
Hello,
I am trying to add text a 3d graphic, made with plot3d, function scaterr3d but, r results in error.
My code is: with(biggest, scatter3D(point_X, point_Y, tiempoAMBO, colvar= biggest$tiempoAMBO, theta=40, phi=0, col= gg.col(100), bty= "g", ticktype= "detailed", type= "o", pch=20, font= 0.9, cex.axis=.5, cex.lab = .8, colkey = list(side = 2, length = 1, side.clab = 1), ...
The graphic is fine but, when I add text, says me:
> text3D(point_X, point_Y, tiempoAMBO, labels = rownames(biggest$clonas), add = TRUE, colkey = FALSE, cex = 0.5)
Error in text3D(point_X, point_Y, tiempoAMBO, labels = rownames(biggest), :
'labels' should have same length as 'x'.
I am working, following the tutorial in: "http://www.sthda.com/english/wiki/impressive-package-for-3d-and-4d-graph-r-software-and-data-visualization, Add texts to an existing plot:"

Thanks for your help.

Maluca
   

Slingshot booster

rank_0.png

Avatar

Signed up since: 30/05/2018

Messages: 2

On 08/15/2018 at 02h14
Hello guys,
I did achieve it.
I had trying and trying until I did make.

It is not neccesary a response.
Thanks
   
Answer
You aren't allowed to write in this category
1 User online : 0 Administrator, 0 Moderator, 0 Member and 1 Visitor
User online : No member online