Saturday, 15 May 2010

Cannot move an R chart when generated from C# with RDotNet -



Cannot move an R chart when generated from C# with RDotNet -

i using next c# code inquire r generate series of random numbers , plot them histogram. code works , chart appears. problem cannot chart. impossible move or close it. if go end of code, disappears. there way create r chart flexible can move , other stuff it?

using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; using rdotnet; namespace rgenrand { class programme { static void main(string[] args) { string dllpath = @"c:\program files\r\r-3.1.1\bin\i386\"; rengine.setdlldirectory(dllpath); rengine.createinstance("rdotnet"); rengine engine = rengine.getinstancefromid("rdotnet"); engine.initialize(); var x = engine.evaluate("x <- rnorm(100, mean=50, sd=10)").asnumeric(); engine.evaluate("hist(x)"); console.writeline(x); } } }

c# r visual-studio charts rdotnet

No comments:

Post a Comment