STACK and JSX Graph Function R^2-> R^3