contourFunction: create implicit plot with x,y base

View source: R/Mapply.R

contour.functionR Documentation

create implicit plot with x,y base

Usage

contour.function(func,xbase,ybase,add=F)

Arguments

func

func is a function that return value or boolean vector

xbase

range of x to loop for

ybase

range of y to loop for

add

whether to add to the current, existing plot or not

See Also

contour, ~~~ Exh2d, ~~~ ImpPlot2d,~~~

Examples

contour(function(x,y) x^2 - .5*y^2<=.7)

## The function is currently defined as
contour.function<-function(x,xbase=seq(from = -5,to=5,by=.1),ybase=seq(from = -5,to=5,by=.1)){
  contour(x=xbase,y=ybase,z=Mapply(xbase,ybase,x))
}



HaoLi111/MFVN documentation built on Jan. 5, 2023, 4:37 a.m.