The following examples show the stock trend for IBM during a particular year. The first
two examples use the SGPLOT procedure to show the same plot along the X axis and
the Y axis, respectively. The third example uses the SGPANEL procedure to show a
paneled graph for Intel and Microsoft stock prices in the same year. Optional values
have been specified for the closing stock prices, which are represented as tick marks on
the high-low lines.
title "Stock Trend for IBM";
proc sgplot data=sashelp.stocks
(where=(date >= "01jan2005"d and stock = "IBM"));
highlow x=date high=high low=low
/ close=close;
run;
title;
title "Stock Trend for IBM";
proc sgplot ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.