Load packages library(tidyverse) library(mosaic) library(plotly) Gimme a function Say, you have some function such as [ f(x) = x^2+z^2 ] In more R-ish: f <- makeFun(x^2 + z^2 ~ x & z) And you would like to plot it. Observe that this function has two input (independent) variables, (x) and (z), plus one output (dependent) variables, (y). The thing is, you’ll need to define the values for a number of output values for (y), as defined by the …