The aim of this paper is to describe one method of passing SAS data from SAS to R, using R to produce a graph, then passing that graph back to SAS for inclusion in an ODS document. The R programming language provides a wide range of graphical functionality, some of which are unavailable, or time‑consuming to achieve, in SAS/GRAPH. Using the method described this functionality can be made available to SAS applications. The basic principles demonstrated here could also be adapted to create character‑based reports using R for inclusion in SAS reports.
- PhUSE, Heidelberg, Germany – 10th October 2005
- SAS Forum UK Special Interest Groups, Birmingham, UK – 2nd November 2005