Rgl plot3d and snapshot3d: how to save with a resolution higher than my monitor?

I save several graphs created using the rgl plot3d and snapshot3d functions. I need to save on very high resolution, above my screen. When i use

 par3d("windowRect" = c(x,y,w,h)) 

to set the window size just before calling snapshot3d , it works, but the resolution is limited by the width or height of the monitor. Is there any way to overcome this limit? Thank you all for your time.

+5
source share
1 answer

The solution I found for saving in high resolution is to get away from the snapshot3d function and use rgl.postscript to save in a vector format like svg. This allows me to rasterize later with the resolution I want.

Example:

 rgl.postscript("graph.svg", fmt="svg") 

The rgl.snapshot function really captures a snapshot from the device, and I think there is no way to break the boundaries of the screen using this function if, as Ben Bolker points out in the comments (thanks), a virtual frame buffer is used.

+8
source

Source: https://habr.com/ru/post/1203565/


All Articles