I am calling R from within Java. 

 

But I don't think that I can get any plots written to file from R - inside
Java.

 

This snippet of code(from a larger piece of code) compiles in Java, but
doesn't do anything!

 

 

 

 

 

functions.append("trial<-c(1,3,4,5)\n");

            

            functions.append("dawpdf<-function(filename){\n");

            functions.append("
dev.print(device=pdf,file=filename,\n");

            functions.append("
width=6,height=6,onefile=TRUE,family=\"Helvetica\",\n");

            functions.append("                     title=\"R Graphics
Output\")\n");

            functions.append("                     }\n");

            functions.append("plot(trial)\n");

            functions.append("c<-dawpdf(\"trial.pdf\"\n");

            functions.append("c\n");

 

 

Is it possible to write plots to files from R code which is imbedded in
java?

 

 

-------------------------------------------------

 

Laura Jane Dow

 

 


	[[alternative HTML version deleted]]


