4

How can I plot multivariate polynomial such as f(x,y) = 2 + x + x*y^2 + 3*x^3*y^2 in R ?

For univariate polynomial, polynom package does it, but I haven't found multivariate counterpart.

user67275
  • 1,748
  • 4
  • 31
  • 51

1 Answers1

5
library(emdbook)
curve3d( 2 + x + x*y^2 + 3*x^3*y^2)

enter image description here

Ben Bolker
  • 192,494
  • 24
  • 350
  • 426