I have a C++/Qt library that is producing some specialised visualisations; the visualisations are currently produced using Qt's QPainter system and primitives. I would like to extend my library to produce these visualisations for R.
I already have a bridge between my C++ library and R using Rcpp, that works for exchanging basic data structures e.g. exposing data from the library as data-frames etc. However I am a bit lost on what the next step should be in order to output R graphics from C++.
If it is possible to use the Qt infrastructure, it would be great as it would improve code reuse. However, if it is not at all possible, I would be willing to rewrite the visualisation code using the primitives of another system. Note that Qt can output SVG.
Do you have any advice on how to use Rcpp (or something else) to achieve this goal. Could you perhaps point me to other C++ libraries that produce visualisations for R? (Note: this does not include graphics libraries written in R for R).