fsbrain icon indicating copy to clipboard operation
fsbrain copied to clipboard

save output as grob objects

Open GerardYu opened this issue 1 year ago • 1 comments

hi is it possible to export the image output as a grob object so that it can be used with plot_grid()?

GerardYu avatar May 05 '23 04:05 GerardYu

Hi @GerardYu, sorry for the late reply, that's currently not possible.

I have never heard of a grob object. From a quick google search it seems that grob and plot_grid are related to ggplot. The fsbrain package does not use ggplot in any way. If a grob object is some standard thing and you can provide some docs, I could have a look. But the final image that is exported from fsbrain is just a png file, cut from several images with imagemagick to remove the white space around each tile.

It sounds to me like maybe one could export individual tiles to grob at best. This could be possible with the ggplotify package, but I'm not sure since we plot in 3D, using rgl, not using the standard R 2D plotting functions.

dfsp-spirit avatar Jun 23 '23 05:06 dfsp-spirit