On Tue, Sep 23, 2008 at 6:32 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>> The function curve() draws the graph of functions from R to R. Is
>> there some homologous function to curve() to draw functions from R^2
>> to R?
>
> No, you would have to write it yourself.  The basic idea is to use outer()
> to construct a matrix of function evaluations, then plot the matrix using
> persp, contour, image, rgl::persp3d, etc.  There are examples on the
> ?contour man page.

Thanks, Duncan. perps does what I was looking for.

Paul

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to