r - how draw ellipses on a scatterplot3d -


i have following data frame:

 cost quality safety time    status 1   13       6      3    4 benchmark 2   10       4      5   10 benchmark 3    8       9      3    9 benchmark 4    7       8      9    9 benchmark 5    4       4      4    2   current 6    2       2      7   11   current 

i want create benchmark space interms of scatter plot. used scatterplot3d package draw it.

scatterplot code:

scatterplot3d(f$cost,f$quality,f$safety,f$time,f$status) 

i got below graph, scatterplot want draw ellipses benchmarks confidence level of .975.so found dataellips in car package not know how apply function in scatterplot3d. graph want following:

scatter plot ellipses

i have tried code below, not work;

scatterplot3d(dataellipse(f$cost,f$quality,levels=0.68),f$safety,f$time,f$status) 

because function of dataellips coming car package. error message following:

error in xyz.coords(x = x, y = y, z = z, xlab = xlabel, ylab = ylabel,  :    'x', 'y' , 'z' lengths differ 


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -