正在加载图片...
SUGI 30 Tutorials Answer:The H and V have been dropped in the AUTOREF options because there can be on one reference line. As before,to control the axis code an AXIS statement and specify which axis to use it for in the chart options.MAXIS stands for midpoint axis whether it be on the horizontal for VBAR or on the vertical for HBAR.The SHAPE option lets you define the shape of the bar.As always,check the Reference Manual for a complete list of possible values. CFRAME lets you control the color of the frame or background behind the bars. axisl label=(c=darkgreen SAS/Graph GChart Example h=1.5 f=zapfbi) value=(f=swissb c=darkgreen h=0.75); proc gchart data=sashelp.shoes; vbar3d Product caxis=blue ctext=darkblue autoref lref=2 cref=lime maxis=axisl shape=star cframe=cyan; run; Produet So what do you think the chart option for the other axis is called?Answer:RAXIS which stand for response axis. Thus far we have taken the default for the response axis which is Frequency-a count of observations that fall within the bars midpoint.For our data,that does not seem very useful.What might you want the height of the bar to represent? Well,you have several possibilities-FREQ(the default),CFREQ(cumulative frequency).PERCENT,CPERCENT (cumulative percent),SUM,and MEAN.Simply code one of these as a chart option.If you use the SUM or MEAN option,you will also need to code the SUMVAR option to specify which variables value to take the SUM or MEAN of. axis1 label=(c=darkgreen proc gchart data=sashelp.shoes; h=1.5 f=zapfbi) vbar3d Product value=(f=swissb caxis=blue ctext=darkblue c=darkgreen h=0.70); autoref lref=2 cref=lime axis2 label=(c=darkorange sum sumvar=sales h=1.5 f=zapfbi) maxis=axisl raxis=axis2 value=(c=darkorange shape=star cframe=cyan; f=swissl) run; SAS/Graph GChart Example Total Sales s7.08370m A17583 日4 5507、243 6000000 4137.8 000000 000000 454 Product 1010 Answer: The H and V have been dropped in the AUTOREF options because there can be on one reference line. As before, to control the axis code an AXIS statement and specify which axis to use it for in the chart options. MAXIS stands for midpoint axis whether it be on the horizontal for VBAR or on the vertical for HBAR. The SHAPE option lets you define the shape of the bar. As always, check the Reference Manual for a complete list of possible values. CFRAME lets you control the color of the frame or background behind the bars. axis1 label=(c=darkgreen h=1.5 f=zapfbi) value=(f=swissb c=darkgreen h=0.75); proc gchart data=sashelp.shoes; vbar3d Product / caxis=blue ctext=darkblue autoref lref=2 cref=lime maxis=axis1 shape=star cframe=cyan; run; FREQUENCY 0 10 20 30 40 50 60 So what do you think the chart option for the other axis is called? Answer: RAXIS which stand for response axis. Thus far we have taken the default for the response axis which is Frequency – a count of observations that fall within the bars midpoint. For our data, that does not seem very useful. What might you want the height of the bar to represent? Well, you have several possibilities – FREQ (the default), CFREQ (cumulative frequency), PERCENT, CPERCENT (cumulative percent), SUM, and MEAN. Simply code one of these as a chart option. If you use the SUM or MEAN option, you will also need to code the SUMVAR option to specify which variables value to take the SUM or MEAN of. axis1 label=(c=darkgreen h=1.5 f=zapfbi) value=(f=swissb c=darkgreen h=0.70); axis2 label=(c=darkorange h=1.5 f=zapfbi) value=(c=darkorange f=swissl) ; proc gchart data=sashelp.shoes; vbar3d Product / caxis=blue ctext=darkblue autoref lref=2 cref=lime sum sumvar=sales maxis=axis1 raxis=axis2 shape=star cframe=cyan; run; $2,350, 543 $7, 933,707 $5,507, 243 $868, 436 $6, 175, 834 $651,467 $4, 137,861 $6,226, 475 SUGI 30 Tutorials
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有