FOCUS AREAS

Graphics

Time Series
Time Series
Base SAS: ODS Graphics Procedure: SGPLOT

/* Open the LISTING destination and assign the LISTING style to the graph */
ods listing style=listing;
ods graphics / width=5in height=2.81in;
title 'Monthly Stock Price';
/* Run PROC SGPLOT on data SASHELP.STOCKS, selecting for IBM stocks after Jan 2003 */
proc sgplot data=sashelp.stocks(where=(stock eq 'IBM' and date > '01Jan2003'd));
  /* Generate a high low plot */
  highlow x=date high=high low=low / open=open close=close
    lineattrs=(thickness=2) y2axis;
  xaxis display=(nolabel);
  y2axis display=(nolabel) grid;
run;