R-extension: Generate SVG with R View (Workspace) or otherwise
Hi,
I am busy creating a set of components to integrate the bupaR package (from R) into knime for business process analysis. Some the bupaR commands generate ggplot objects that need to be plotted and shown.
Currently, I am using R View (Workspace) to run the bupaR command (e.g. trace_explorer(), which then passes the ‘image’ to the Image View node. This works, but the output is PNG and the quality is subpar.
I wanted to see if we can export a SVG image from “R View (Workspace)” to the Image View or Javascript View (the latter would allow me to add html buttons to zoom in and out).
However, it’s not clear how to do this. I have tried ggsave(), but this gives me a lot of errors. Anybody an idea in which direction I can look to get this to work (some existing workflows that do something similar). I couldn’t find anything useful online after some hours of searching.
Thanks
PS: Is there a way to see how other community components are created (the internals?). It might help me get some ideas.