Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: R.Net doesn't load library("lattice")

$
0
0
Hi how should I add the location to the System directory?
I have moved R.dll in the folder where my C# project is stored. Then I use the following:
        REngine.SetEnvironmentVariables();
        REngine engine = REngine.GetInstance();

        var v1 = engine.CreateNumericVector(myX); /
        var v2 = engine.CreateNumericVector(myY);
        var v3 = engine.CreateNumericMatrix(myZ);

        engine.SetSymbol("v1", v1);
        engine.SetSymbol("v2", v2);
        engine.SetSymbol("v3", v3);

        engine.Evaluate("library('lattice')");
        engine.Evaluate("xyplot(v1~v2)");
Apparently this works now. I was using wrong syntax. Anyway I still have the problem with ggplot2 library. I installed it via RStudio but I'm not able to use it.

Can you please show me how I can plot as line my variable v1? Thanks for the help.

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>