O'Reilly logo

SAS Programming and Data Visualization Techniques: A Power User’s Guide by Philip R. Holland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 4

image

SAS to R to SAS

The aim of this chapter is to describe one method of passing SAS data from SAS to R, using R to produce a graph, and 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 is unavailable or time-consuming to achieve in SAS—either in SAS/GRAPH or ODS Graphics. The method described here makes this functionality available to SAS applications. You can also adapt these basic principles to create character-based reports using R for inclusion in SAS reports.

Software Environment

This chapter includes the following software ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required