Friday, August 17, 2012

A nice video on RCaller 2.0


A nice video on RCaller is in Youtube now. The original link is in Quantlabs.net. Thanks for the uploader.

1 comment:

  1. I want to plot a graph, using qcc, there are no error but the frame is not plotting with the graph, just a empty frame.
    I am runnning the following code in Netbeans, using Windows 7 (64 bits), RCaller version in 2.0.7 and R version in 2.15.1
    My entire code is:

    import rcaller.RCaller;
    import java.io.File;

    public class TestRCaller1{

    public void test1(){
    try{

    RCaller caller = new RCaller();
    caller.setRscriptExecutable("C:/Program Files/R/R-2.15.1/bin/x64/Rscript");
    caller.cleanRCode();

    caller.addRCode("library(MASS)");
    caller.addRCode("library(qcc)");
    caller.addRCode("require(qcc)");
    caller.addRCode("Teso3<-read.csv('C:/Users/dell/Documents/Disconformteso3trim.csv',header=T)");
    caller.addRCode("attach(Teso3)");
    caller.addRCode("Disconform9<-qcc.groups(Disconform9,Sample3)");
    caller.addRCode("tmuestra<-scan(C:/Users/dell/Documents/tmuestra.csv,sep=';')");
    // //caller.addRCode("pdf('grafico.pdf')");
    File file = caller.startPlot();
    caller.addRCode("grafico<-qcc(Disconform9[1:65],type='p',sizes=tmuestra)");
    caller.addRCode("plot.ts('grafico')");
    caller.endPlot();
    caller.runOnly();
    ImageIcon ii = caller.getPlot(file);
    caller.showPlot(file);
    }catch(Exception e){

    System.out.println(e.toString());}
    }

    Can you help me to see where the problem is?

    Thanks.

    Jess

    ReplyDelete

Thanks