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
  • 9
  • 38
  • 64

1 Answers1

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

enter image description here

Ben Bolker
  • 211,554
  • 25
  • 370
  • 453