Dear Thomas, Thanks for the speedy reply, your help is much appreciated. What I would like to do is to set up a mechanism for dynamically displaying graphs created using R, from data held in an Oracle database. I am using VB.NET to build the application. So far, I have not made much progress, I have built a test application which attempts to use the R(D)Com Server to display a graph on a web page. I looked on the web for example code for the test, and came up with the following: Dim xconnector As STATCONNECTORSRVLib.StatConnector xconnector = New STATCONNECTORSRVLib.StatConnector xconnector.Init("R") Dim mygfx As New StatConnectorGraphicsDevice xconnector.AddGraphicsDevice("mygfx", mygfx.GetGFX()) xconnector.EvaluateNoReturn("plot(sin(1:100))") xconnector.RemoveGraphicsDevice("mygfx") xconnector.Close() When I run the test, there are no errors reported but no graph displayed either. Any ideas on where I am going wrong? Best wishes, Lynne
________________________________ From: [EMAIL PROTECTED] on behalf of Thomas Baier Sent: Mon 06/10/2008 19:37 To: R (D)COM and RExcel server related issues Subject: Re: [Rcom-l] Help for a Beginner please Dear Lynne, please elaborate on what your code should do, and what it is doing. Thomas Irvine, Lynne schrieb: > I think R is great and I would really like to use it generate graphics from > my VB.NET application, but I am having a really hard time trying to get it > work. It appears to run ok, but I can't generate any plots at all, either > directly to the web page or to a plot file. Looking through the list it > appears that others have trodden this path before me, so I am hoping that > someone can help me get on the right track. > > I am using Microsoft Visual Studio .NET 2003, R V 2.6.1 and R(D)COM Server > V1.35. > > The test code I am using is: > Dim xconnector As STATCONNECTORSRVLib.StatConnector > xconnector = New STATCONNECTORSRVLib.StatConnector > xconnector.Init("R") > Dim StatConnectorGraphicsDevice1 As New StatConnectorGraphicsDevice > Dim mygfx As StatConnectorGraphicsDevice > mygfx = StatConnectorGraphicsDevice1 > xconnector.AddGraphicsDevice("mygfx", > StatConnectorGraphicsDevice1.GetGFX()) > xconnector.EvaluateNoReturn("plot(sin(1:100))") > xconnector.RemoveGraphicsDevice("gfx") > xconnector.EvaluateNoReturn("Finish") > xconnector.Close() > > With initial Imports statements: > > Imports STATCONNECTORCLNTLib > Imports STATCONNECTORSRVLib > Imports StatConnControls.GraphicsDeviceClass > > The Build is ok and everything appears to execute ok, but no plot. Any ideas > please? > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rcom-l mailing list > Rcom-l@mailman.csd.univie.ac.at > http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l > More information (including a Wiki) at http://rcom.univie.ac.at > <http://rcom.univie.ac.at/> _______________________________________________ Rcom-l mailing list Rcom-l@mailman.csd.univie.ac.at http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l More information (including a Wiki) at http://rcom.univie.ac.at <http://rcom.univie.ac.at/>
<<winmail.dat>>
_______________________________________________ Rcom-l mailing list Rcom-l@mailman.csd.univie.ac.at http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l More information (including a Wiki) at http://rcom.univie.ac.at