Chapter 4a. SAS Graphics

Chapter 4a. SAS Graphics - SAS Graphics 1 PROC GCHART PROC...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 SAS Graphics
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ± PROC GCHART ± PROC GPLOT ± GOPTIONS
Background image of page 2
3 PROC GCHART ± PROC GCHART plots charts – bar, frequency, pie, and many other charts ± Each kind of chart can be requested by a specific plot statement in PROC GCHART. ² Requests a vertical bar chart PROC GCHART DATA=PROF; VBAR …; ± The other plot statements are VBAR3D, HBAR, HBAR3D, PIE, PIE3D etc.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Bar chart ± VBAR statement requests a vertical bar chart ± Data set is PROF ± Plot variable is PAYCAT. Separate bars are for each value of PAYCAT. The height of the bars are the counts ± Separate group of bars for each value of the group variable SUBJECT * example 4a.1 simple bar charts; * payment category by subject; proc gchart data=prof; vbar paycat/group=subject midpoints='Low' 'Medium' 'High'; label subject='Subject' paycat='Payment category'; title 'Payment category by Subject'; run; quit;
Background image of page 4
5 FREQUENCY 0 1 2 3 4 5 6 7 8 9 Payment category Subject Engineering Humanities Management Social sciences L o w M e d i u m H i g h L o w M e d i u m H i g h L o w M e d i u m H i g h L o w M e d i u m H i g h
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 3-D Stack bar chart ± VBAR3D statement requests a vertical 3-D bar chart ± Bards for subgroup variable DEGREE are stacked for the same value of the plot variable PAYCAT within the same value for the group variable SUBJECT * example 4a.2 3-D stack bar chart; * payment category by degree by subject; proc gchart data=prof; vbar3d paycat/group=subject subgroup=degree midpoints='Low' 'Medium' 'High'; label subject='Subject' paycat='Payment category' degree='Degree'; title 'Payment category by Degree by Subject'; run; quit;
Background image of page 6
7 Degree Bachelor Doctorate Master FREQUENCY 0 1 2 3 4 5 6 7 8 9 Payment category Subject Engineering Humanities Management Social sciences L o w M e d i u m H i g h L o w M e d i u m H i g h L o w M e d i u m H i g h L o w M e d i u m H i g h
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Horizontal bar chart ± HBAR / HBAR3D statement requests a horizontal bar chart ± Numeric variable PAYMENT is used as the summary variable in the plot. The summary statistic is mean of PAYMENT. The lengths of the bars reflect the statistic * example 4a.3 horizontal bar chart; * mean payment by degree by subject; proc gchart data=prof;
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 28

Chapter 4a. SAS Graphics - SAS Graphics 1 PROC GCHART PROC...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online