正在加载图片...
SUGI 30 Tutorials Another powerful option is VAXIS (and HAXIS)to specify the major tick marks of the vertical axis.If any point lies 4 beyond what you specify.it is NOT plotted-so be careful. 10000 where Region in("United States", "Eastern Europe"); plot Returns Sales=Region vaxis=0 to 15000 by 5000 5000 autohref lhref=2 chref=lime autovref lvref=5 ++ cvref-pink 我 caxis=blue ctext=red 50 雪100000 82am000 30m.000 5400000 00000 run; GLOBAL STATEMENTS Titles Using global statements gives you even MORE control of certain aspects of the graphs along with more options to further enhance the graph.Let's take a look at the TITLE statement. titlel c=darkblue h=2.5 f=swissb "SAS/Graph c=darkred h=3.0 f=swissbi "GPLOT Example"; Can you guess what the C=,H=,and F=are specifying? That's right!-Color,Height,and Font.The quoted text following the options will take on those specifications. Axis Instead of using the VAXIS option to define the vertical axis,let's code an AXIS statement (which is much more powerful)and point to it in the plot option. axisl label=(c=darkorange h=1.5 f=zapfbi j=r "Total Returns") offset=(0.2 in order=(0 to 15000 by 5000) value=(c=darkorange f=swissl); Since you can(and usually do)have more than one axis statement,you need to number them(from 1-99)just like a title statement. The LABEL=option defines the options for just the label of the axis.The J=option in the justification of the text- left(L),center(C),right(R). The ORDER=defines the range of values and major tick marks. The VALUE=define the attributes of the labeling of the axis and the tick marks. The OFFSET=defines how far from the lower left corner of the graph to start the first tick mark.5 Another powerful option is VAXIS (and HAXIS) to specify the major tick marks of the vertical axis. If any point lies beyond what you specify, it is NOT plotted—so be careful. where Region in("United States", "Eastern Europe"); plot Returns * Sales=Region / vaxis=0 to 15000 by 5000 autohref lhref=2 chref=lime autovref lvref=5 cvref=pink caxis=blue ctext=red ; run; Regi on East ern Europe Uni t ed Stat es Tot al Returns $0 $5, 000 $10, 000 $15, 000 Tot al Sal es $0 $100, 000 $200,000 $300,000 $400, 000 $500, 000 GLOBAL STATEMENTS Titles Using global statements gives you even MORE control of certain aspects of the graphs along with more options to further enhance the graph. Let’s take a look at the TITLE statement. title1 c=darkblue h=2.5 f=swissb "SAS/Graph " c=darkred h=3.0 f=swissbi "GPLOT Example"; Can you guess what the C=, H=, and F= are specifying? That’s right! – Color, Height, and Font. The quoted text following the options will take on those specifications. Axis Instead of using the VAXIS option to define the vertical axis, let’s code an AXIS statement (which is much more powerful) and point to it in the plot option. axis1 label=(c=darkorange h=1.5 f=zapfbi j=r "Total Returns") offset=(0.2 in ) order=(0 to 15000 by 5000) value=(c=darkorange f=swissl ); Since you can (and usually do) have more than one axis statement, you need to number them (from 1 – 99) just like a title statement. The LABEL= option defines the options for just the label of the axis. The J= option in the justification of the text – left(L), center(C), right(R). The ORDER= defines the range of values and major tick marks. The VALUE= define the attributes of the labeling of the axis and the tick marks. The OFFSET= defines how far from the lower left corner of the graph to start the first tick mark. SUGI 30 Tutorials
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有