Plotting a single point (x, y, z) in three dimensional space using R -


i trying plot 1 single (x, y, z) point in 3 dimensional space, similar graph here: example 3d graph

i have tried using scatter3d function rgl library, stuck on how point itself. tried following:

scatter3d(x=-4, y=0, z=-1) 

which resulted in: result

i not sure how structure data point. there library use better suited this? or using function wrong way?

to reproduce first plot

library(rgl) x=2 y=3 z=1 plot3d(x, y, z, col = rainbow(1000), xlim = c(-4,4), ylim = c(-4, 4), zlim = c(-2, 2)) abclines3d(2, 3, 1, = diag(3), col = "gray") 

enter image description here


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -