I am using Windows 11. I am plotting 3D stuff in R. When I want to see how the map is looking, an RGL windows pops up. However, it opens in the top left corner of the screen and the X button is hidden, like if the RGL window was too high. I have to make some extra steps to click on "X" if I want to close it or just rgl::rgl.close()
I think my problem would be solved if the default window would open in the center of the screen or even a little lower. How do I change its default position?
You haven't shown us how you opened the window. If you're using
open3d(), just specifywindowRect. If you're opening the windows automatically, you can putwindowRectin ther3dDefaultsvariable, e.g.If you want a different position, then move the window to the position you want, and run
par3d("windowRect")to see the coordinates you've chosen.Edited to add:
After looking more closely at the code image you posted, I think you're using the
rayshaderpackage to open therglwindow. That package overrides a lot ofrgldefaults and the proposed solution may not work. That's why you should always post reproducible code when you ask a question: I would have checked my answer before posting.