Chapter Contents |
Previous |
Next |
Doing More with SAS/ASSIST Software |
You can use
Bar Charts
on the Graphics menu
to create horizontal or vertical simple bar charts, stacked bar charts, grouped
bar charts, and grouped and stacked bar charts. In the "Graphics"
chapter of
Getting Started with the SAS System Using SAS/ASSIST Software, you learned how to create a bar chart. This section
describes some of the more advanced options available when generating bar
charts.
Generating a Bar Chart with the Mean Displayed |
Tasks | Graphics | Bar Charts |
Bar Charts Window
Bar/Slice Values Window
General Options Window
Color and Pattern Options Window
For the 2ND and 5TH areas, leave the pattern as Solid.
For the 3RD and 6TH areas, select Empty as the pattern.
The pattern selected by default for the bars is Solid. If you print a black and white graphic as shown in this book, you can use the pattern options to distinguish one bar from another.
If you print a color graphic, you can use colors to
distinguish one bar from another. To display a list of valid colors, type
?
in the first position of the Color field and press ENTER. Select the color
you want to use.
Midpoint Values Window
You select Use each discrete chart variable value to display one bar for each age represented in the CLASS data set (11, 12, 13, 14, 15, and 16). The default for the number of bars is Let the number of midpoints default, which lets the procedure determine the number of midpoints (bars) for the chart column. Each midpoint represents a median of a range of values. In this example, if you use Let the number of midpoints default, the bars represent the midpoints of the AGE variable (11.4, 12.6, 13.8, 15, and 16.2).
The window that appears when you select Number of bars is different for numeric and character chart columns.
Edit | Titles | Title 1 |
Title 1 Window
Mean Weight by Age
as the title for the plot.
Note: Titles carry over from one report or graphic to
another. If you do not type a title and a title was selected previously in
the current SAS/ASSIST session, the previous title automatically appears on
this graphic.
The Font List window appears.
Font List Window
Select OK twice to return to the Bar Charts window.
Bar Chart Output
File | Close |
Other Bar Chart Options |
Three-dimensional Bar Chart Output
Grouped Bar Chart Output
Similarly, if you assign the SEX column to Stacking column and use frequency for Bar values, you can create a bar chart with males and females distinguished in the same bar for each age:
Stacked Bar Chart Output
You can also
combine stacking and grouping to create
grouped stacked bar charts.
Horizontal Bar Chart Output
By choosing items on the Additional Options menu, you can add a reference line to your bar chart; change the color, size, and font of the label text; change the appearance of the axes; and change the appearance of the legend.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.