I have the 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 to create benchmark space interms of scatter plot. So I used scatterplot3d package to draw it.
Scatterplot code:
scatterplot3d(f$cost,f$quality,f$safety,f$time,f$status)
I got the below graph,
But I want to draw Ellipses for Benchmarks with the confidence level of .975.So I found dataEllips in car package but I do not know how To apply this function in scatterplot3d.
The Graph That I want is as following:
I have tried the code below, but it does not work;
scatterplot3d(dataEllipse(f$cost,f$quality,levels=0.68),f$safety,f$time,f$status)
because the function of dataEllips is coming from car package. The Error message is as following:
Error in xyz.coords(x = x, y = y, z = z, xlab = xlabel, ylab = ylabel, :
'x', 'y' and 'z' lengths differ