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

New Post: Better way to capture plot image from R engine

$
0
0
I am attempting to capture the image from the console window using the following:
engine.Evaluate(string.Format("dev.copy(jpeg,'{0}')", rfilename));
the file is successfully saved.

But I'd like to capture the image without having the console window appear at all.

If I set the StartupParameter Interactive to false when initializing my engine, the console window doesn't appear but I'm also not able to capture the image.

Can someone point me to a project or code snippet that may help me capture the image created by an evaluation of the engine without having the console window pop open.

current example calls :
engine.Evaluate("hist(SiteData2$AVGOfSiteLatitude)");
or
engine.Evaluate("plot(SiteData2)");

Thank you in advance

Viewing all articles
Browse latest Browse all 1634

Trending Articles