LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 7 May 2010 19:36:33 -0400
Reply-To:   Ya Huang <ya.huang@AMYLIN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ya Huang <ya.huang@AMYLIN.COM>
Subject:   Re: SAS/Graph frustration
Comments:   To: Sterling Paramore <gnilrets@GMAIL.COM>

Suppress the gaxis label, and add it to legend label:

Axis3 LABEL=none VALUE=(ANGLE=70) ;

legend1 label=("Age Group" POSITION=(TOP center)) position=(bottom) across=2 ;

This seems to meet your requirement.

On Fri, 7 May 2010 16:06:44 -0700, Sterling Paramore <gnilrets@GMAIL.COM> wrote:

>Dear SAS-L, > >Below is a snippet of some code I'm using to create a PDF graph. The label >for the x-axis ends up to the right of the graph, but I would prefer it to >be centered and below the x-axis labels. For some reason, the label >properties for Axis3 ("Age Group") are not being recognized --- if I try >changing the angle/rotation for the label, nothing is affected. > >Any Ideas? > >Thanks, >Sterling > >data graph_libdsn; > input PeerGroup_Flag $ Membs_Age_Grp $ Membs_Prosp_Risk_Mean; > datalines; >N 00-04 0.3464 >N 05-18 0.4766 >N 19-23 0.7132 >N 24-29 0.9089 >N 30-34 0.9701 >N 35-39 0.8718 >N 40-44 1.2598 >N 45-49 1.4206 >N 50-54 1.9865 >N 55-59 2.3478 >N 60-64 2.8227 >N 65+ 4.5499 >Y 00-04 0.4264 >Y 05-18 0.4343 >Y 19-23 0.6653 >Y 24-29 0.7951 >Y 30-34 0.9055 >Y 35-39 1.0021 >Y 40-44 1.1241 >Y 45-49 1.3277 >Y 50-54 1.5667 >Y 55-59 1.9786 >Y 60-64 2.2192 >Y 65+ 2.9710 >run; > > > goptions reset=all device=sasprtc; > options orientation=landscape nodate nonumber; > > ods pdf file="/sas/DataStore/TmpLib/BasicRisk.pdf" nobookmarkgen >startpage=never style=printer; > > > ** Age Group score graph; > > goptions vsize=3.0 in vorigin=.5 in > hsize=4.0 in horigin=.5 in; > > goptions ftext="Century Schoolbook" htext=8 pt ctext=black; > > > Axis1 > STYLE=1 > WIDTH=1 > LABEL=NONE > VALUE=NONE > ; > Axis2 > STYLE=1 > WIDTH=1 > MINOR=NONE > LABEL=(ANGLE=90 "Prospective Score") > ; > Axis3 > LABEL=("Age Group" position = bottom) > VALUE=(ANGLE=70) > ; > > legend1 > label=NONE > position=(bottom) > across=2 > ; > > proc format; > value $PeerDisp > "Y" = "Public Peer" > "N" = "Group"; > run; > > title1 j=l ls=0 move=(+10,+0) h=1 "Risk Scores by Age Group"; > > PROC GCHART DATA=graph_libdsn; > VBAR PeerGroup_Flag / > SPACE=0 > GSPACE=0.5 > SUMVAR=Membs_Prosp_Risk_Mean > GROUP=Membs_Age_Grp > CLIPREF AUTOREF > NOSTATS > NOFRAME TYPE=SUM > SUBGROUP=PeerGroup_Flag > LEGEND=legend1 > COUTLINE=BLACK > MAXIS=AXIS1 > RAXIS=AXIS2 > GAXIS=AXIS3 > ; > > format PeerGroup_Flag $PeerDisp.; > format Membs_Prosp_Risk_Mean 7.1; > > run;


Back to: Top of message | Previous page | Main SAS-L page