contourExpression: create implicit plot with x,y base

View source: R/Mapply.R

contour.expressionR Documentation

create implicit plot with x,y base

Usage

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

Arguments

func

func is an expression 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(expression(x^2 - .5*y^2-.7))

## The function is currently defined as
contour.expression<-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.