[R] curve(x,y)?

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Feb 16 13:37:24 CET 2005


solares at unsl.edu.ar wrote:

> HI, i search for a function what plot a curve but my function f(x) have
> two variables, exist a funcion curve(x,y) in R. Thanks
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Not exactly, but quite easy to do it yourself, example:


   f <- function(x, y) x+y
   x <- 1:10
   y <- 1:10
   z <- outer(x, y, f)
   persp(x, y, z)


Uwe Ligges




More information about the R-help mailing list