I would like to build a very simple rectangular surface in R that would have a logistic trend. The values at the top would have the highest values (1) and at the bottom the lowest (0). I have drafted an image that shows example of the surface that I have in mind, with help of not the prettiest trend lines so you have an idea what is needed. I do not have any data, it is supposed to be a theoretical surface with logistic trend, that I am later going to modify. Any help with how to start/approach it, or helpful packages in R would be highly appreciated!

Consider this as a hint.
or
The only thing you have to do is place the variable, as you call it, with the “logistic trend,” in place of ‘
0:1’A second hint
this results in