@mara I assume your suggestion is serving the purpose of @WinLamp and without reprex it is almost impossible to guess what is the exact meaning of the original question. However, my thinking is drawing hyper-plane will fit in 3 independent variables case only if one of the independent variable is categorical isn't it?