18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Graphics Output (1/2)<br />

� redirect R‘s graphics output in a window<br />

– only works with R (D)COM Server (not with rcom)<br />

� ActiveX control StatConnectorGraphicsDevice<br />

– add components to the toolbox from “StatConnectorClnt 1.0<br />

Type Library<br />

– or add components to the toolbox from “StatConnControls“<br />

� StatConnectorClnt 1.0 Type Library<br />

– put a StatConnectorCharacterDevice on a form and set the<br />

visual properties<br />

– call r.AddGraphicsDevice "gfx", gfxDev.GetGFX<br />

� StatConnControls<br />

– put a GraphicsDevice on a form and set the visual properties<br />

– gfxDev.DeviceName = "gfx"<br />

Set gfxDev.Connector = r<br />

gfxDev.AddToConnector

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!