I am trying to use R to plot a function that takes the form:
$$z=\beta_{0}+\beta_{1}x+\beta_{2}x^{2}+\beta_{3}y+\beta_{4}y^{2}+\beta_{5}x*y$$
Where I have numerical values for all the $\beta$'s. I can't seem to find an example of using the the functional form of -scatter3d- and I am not running a regression within R nor plotting the series of z, x, and y.
I currently have
scatter3D(df$z=0.0279x-0.0000188x_sq+0.0422y-0.00708y_sq-0.000181x_y, df)
And haven't even added anything else to it because I get an error message:
Error: unexpected '=' in "scatter3D(df$z="
So I am assuming it is a syntax problem but can't seem to find anything about it.