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: 
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: 
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") 
Comments
Post a Comment