14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 10 Interactive Data Visualization 291<br />

Additional Examples Using Graph Builder<br />

Figure 10.28 Example of Stacked Bars for Production <strong>and</strong> Consumption<br />

This still is not exactly what you want. It would be clearer to see the production <strong>and</strong> consumption bars<br />

going in different directions.<br />

7. Go back to the Oil Use.jmp sample data table.<br />

8. Double-click on an empty column heading to create a new column.<br />

9. Double-click on the new column title, <strong>and</strong> rename it Negative Consumption. Click OK.<br />

10. With the new column highlighted, select Cols > Formula.<br />

11. Click Consumption.<br />

12. Click +/-.<br />

13. Click OK.<br />

The new Negative Consumption column contains the negative consumption values. Use this column to see<br />

the consumption bar going in the opposite direction from the production bar. Launch Graph Builder <strong>and</strong><br />

create the graph again.<br />

14. Select Graph > Graph Builder.<br />

15. Drag <strong>and</strong> drop Country into the Y zone. You can resize the Graph Builder window <strong>and</strong> the graph if<br />

necessary.<br />

16. Drag <strong>and</strong> drop Production <strong>and</strong> Negative Consumption to the X zone.<br />

17. Right-click on the graph <strong>and</strong> select Points > Change to > Bar.<br />

18. Right-click on the graph <strong>and</strong> select Bar > Bar Style > Stacked.

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

Saved successfully!

Ooh no, something went wrong!