SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide

space
Previous Page | Next Page

The SGPLOT Procedure

Example 9: Creating a Bar-Line Chart


Procedure features: VBAR statement, VLINE statement
Sample library member: GSGPLBAR

[SGPLOT BarLine Example]

This example creates a bar-line chart.

 Note about code
proc sgplot data=sashelp.stocks (where=(date >= "01jan2000"d
                                 and date <= "01jan2001"d
                                 and stock = "IBM"));
   title "Stock Volume vs. Close";
   vbar date / response=volume;
   vline date / response=close y2axis;
run;

space
Previous Page | Next Page | Top of Page