O'Reilly logo

SAS/GRAPH: Beyond the Basics by Robert Allison

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

EXAMPLE 11  Using Company Logos in Graphs

Purpose: Put a company logo at the top of a graph (as well as a few other tricks!).

I often get my inspiration for new graphs from real life. For example, when my electric utility company started printing a little bar chart on my monthly power bill, I thought that was a pretty useful thing. I decided to see if I could do the exact same graph with SAS/GRAPH. It wasn’t quite as easy as I first thought, and now I am even including it in my book of tricky examples.

In this example, we need 13 months of power consumption values. Here is the data we will work with:

data my_data;
format kwh comma5.0;
format date mmyy5.;
input date date9. kwh;
datalines;
15sep2002   800
15oct2002   550
15nov2002   200

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