The data are in SASDATA.ELECD. Figures ,
and
were produced with SAS/INSIGHT
(see Appendix A, ``An Introduction to SAS''. ).
Figure
was created by choosing Analyze:Bar Chart ( Y ) and then selecting
KWH from the resulting dialog window.
Figure was produced by first selecting
Analyze:Scatterplot( Y X ) and then choosing KWH as the Y variable and
DATE as the X variable in the dialog window. This produced the scatterplot.
Producing the corresponding bar chart was a little trickier. To do it, we first
created a rectangle to the right of the scatterplot by clicking there with the
left mouse button and dragging. It doesn't matter how large the rectangle is.
We next put a vertical bar chart there by choosing Analyze:Bar Chart ( Y ) and then selecting
KWH from the resulting dialog window. To make the bar chart
horizontal (this is the neat part), we clicked on the upper left corner and dragged
that corner down past the lower right. (It's reminiscent of turning a sleeve inside out.)
We then moved the rectangle next to the scatterplot and resized it as desired.
To align the KWH axes on both plots, we chose Edit:Windows:Align.