[Rcpp-devel] Display ggplot2 output to Qt Gui

Jodi Jhouranda Siregar 11.6729 at stis.ac.id
Thu May 7 10:08:55 CEST 2015


command = QString("library(ggplot2);svg(width=6,height=6,pointsize=10,filename=tfile);qplot(dframe$Shape_Leng,
data=dframe, geom='histogram');dev.off();");

rconn.parseEvalQ(command.toStdString());


i try to do that, i get this error.

Cannot read file
'C:\Users\JODIJS~1\AppData\Local\Temp\file87c57a9743b', because:
Premature end of document.


but when i use hist() or plot() method it works. how to display
ggplot2 output to Qt?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150507/be8b1fd1/attachment.html>


More information about the Rcpp-devel mailing list