As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

SAS to R to SAS

From sasCommunity
Jump to: navigation, search


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.

Online Materials

You can visit my own web site to download the latest versions of the paper, presentation, poster and sample code from here.


This paper was included in my book Power User's Guide to SAS Programming published by in 2008.

Contact Info

Please check out my user page. You can also email me.