How to combine "lines3d" and "scatterplot3d" in R?

789 Views Asked by At

I have this task where I have to plot a 3d surface graph. I have few variables i.e.:

K = 1:11
F = 1:11
M = 1:11
S4P = 1:100
GNOP = 1:1000

I want to plot a 3d surface plot. For which I did

library(scatterplot3d)
scatterplot3d(K,F,M)

and then I have to add lines to it so I did

library(rgl)
lines3d(S4P,GNOP,M)

But lines are not drawn on the plot but shown as a separate graph without any axis. How can I combine both?

0

There are 0 best solutions below