search for: mxpnt

Displaying 1 result from an estimated 1 matches for "mxpnt".

2012 Nov 02
1
rgl package and animation
...quot;1879", "1880", "1881", "1882", "1883"), class = "data.frame") # Plot 3d path with(dat, plot3d(X,Y,Z, type = 'l', col = 'blue', lty = 1)) # get absolute distance from origin dat$r = sqrt(dat$X ^ 2 + dat$Y ^ 2 + dat$Z ^ 2) mxpnt = dat[dat$r == mr,] # Coordinates of furthest point # Plot a blue sphere at max distance plot3d(mxpnt$X, mxpnt$Y, mxpnt$Z, type = 's', radius = 1, col = 'blue', add = TRUE)