Skip to content
Prev 205834 / 398506 Next

Is there any function in R like ezplot in matlab?

On 09/01/2010 5:22 AM, ? ? wrote:
It's not pre-packaged, but drawing a contour plot of the function

f <- function(x,y) x^y+y^sin(x) - log(x+y)

should do it:

xvals <- yvals <- seq(0, 30, len=1000)
zvals <- outer(xvals, yvals, f)
contour(xvals, yvals, zvals, levels=0)


Duncan Murdoch