ImpPlot2d | R Documentation |
Exhausively point out the data that satisfy some functions of x and y.
ImpPlot2d(func = function(x,y) abs(x^2 +2*y^2-2)<=1e-2,x = seq(from=0,to=2,by=.01),y = seq(from=0,to=2,by=.01))
x |
Hao Li
contour.function
, ~~~
ImpPlot2d
, ~~~
ImpPlot2d(func = function(x,y) abs(x^2 +2*y^2-2)<=1e-2,x = seq(from=0,to=2,by=.01),y = seq(from=0,to=2,by=.01)) #Currently defined as #ImpPlot2d<-function(func,...) UseMethod('ImpPlot2d') function(func, x = seq(from = -5,to = 5, by=.1), y = seq(from = -5,to = 5, by=.1), xlab = 'x',ylab = 'y', asp = 1,col = 'red', points = F){ if(points ==F) plot(c(min(x),max(x)),c(min(y),max(y)),type = 'n', asp = 1,xlab =xlab,ylab = ylab, main = paste('ImpPlot of ',paste(as.character(body(func)),collapse = ' ',sep = ''),sep = '')) for(i in x){ for(j in y){ if(func(i,j)==T){ points(i,j,col = col) } } } message('plot completed') }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.