Ok, I managed
x<-seq(-1.2,1.2,0.01)
y<-x
f=outer(x,y,function(x,y)abs(x)+abs(y))
contour(x,y,f,asp=1)
This results exactly into what I was after...
Now let's modify the program
x<-seq(-1.2,1.2,0.01)
y<-x
f=outer(x,y,function(x,y)sum(abs(c(x,y))))
This results in
Error in dim(robj) <- c(dX, dY) :
dims [product 58081] do not match the length of object [1]
I don't understand where the problem is...
Kind regards