LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 11 Jul 2002 10:53:05 -0400
Reply-To:   James Green <james.green@alcatel.com>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   James Green <james.green@ALCATEL.COM>
Organization:   AlcaNET Canada
Subject:   Re: SAS Graph - POINTLABEL option

Hi I received solutions immediately after my posts which solved the format question; I thought I'd share it with the group as I am pretty sure plot labelling questions/formats pop up often enough on this list;

Previous to the gplot statement it was pointed out that a simple round function in a data step would address how it appears in the plot (as opposed to formating within proc gplot or symbol statements);

data yldfist3; set yldfist2; yield=round(qty_pass/qty_test*100,.1); run

This will not add in the % sign but a simple y axis label or footnote will indicate the data type.

I know this is simplistic, but I am sure we all get caught up in the 'little' things once in awhile! =)

Big thanks to Mike Zdeb & Andre Wielki for their quick responses. Cheers! James

"James Green" <james.green@alcatel.com> wrote in message news:agk34f$6nq$1@kannews.ca.alcatel.com... > Hi folks; > > rather than using proc annotate... I've opted to use the POINTLABEL option > in the symbol statement to label the data points in gplot. Anyone have an > idea on how to format this option? The variable is formated as percent8.1 > however; when the point label is used the format is dropped. ie. I want > 92.8% to display yet I view .927624822111. > > I modified the data set itself (*100) but it doesn't help as all I would see > is 92.7628422111 etc.. > > I have to many programs to update with this option to want to spend whole > lot of time .. here's hoping there is an easy solution out there... > > -------------------------------------------------------------------------- -- > -------------------- > symbol1 interpol=join width=1 font=marker color=bib value=none height=1 > pointlabel=(h=2); > symbol2 interpol=needle width=1 font=marker color=STEEL width=9; > > proc gplot data=yldfist3; > plot Yield*Week / vaxis=axis1 haxis=axis2 overlay AUTOVREF LVREF=33 > legend=legend1 > description='#byval(CIDCBU)'; > plot2 Qty_Test*Week / overlay vaxis=axis3 haxis=axis2 legend=legend1; > format yield percent8.1; > by CIDCBU; > run; quit; > > > > -- > James Green > Alcatel Canada > Ops Quality Engineering > www.alcatel.ca > (613)784-3963 > > >


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