14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12 Creating Overlay Plots 347<br />

Additional Examples of the Overlay Plot Platform<br />

Figure 12.8 Function Plot<br />

Plotting Two or More Variables with a Second Y-axis<br />

A second y-axis is useful for plotting data with different scales on the same plot, such as a stock’s closing<br />

price <strong>and</strong> its daily volume, or temperature <strong>and</strong> pressure. For example, consider plotting the selling price of<br />

an inexpensive stock against the Dow Jones Industrial Average.<br />

1. Open the Stock Prices.jmp sample data table.<br />

2. From the Graph menu, select Overlay Plot.<br />

3. Assign High, Low, Close, <strong>and</strong> Volume as Y variables.<br />

4. Select Volume in the Y list <strong>and</strong> click Left Scale/Right Scale.<br />

This action assigns Volume to the right axis, leaving the others on the left axis. The arrows to the left of<br />

the Y variables show you which axis each variable is assigned.<br />

5. Assign Date as the X variable.<br />

6. Click OK.<br />

7. From the red triangle menu for Overlay Plot, select Y Options > Connect Points.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!