sas >> Graph: Axis position

by sas » Fri, 18 Jun 2004 03:34:09 GMT

SAS-Lers,

I haven't had much experience with SAS/GRAPH and I received the following
email and attached eps file from one of our stats. Could someone point
me in the right direction? Thank you. btw, the %ps macro just sets up
the driver and some goptions.

Thanks,
--Casey

Here's the issue. I have created the attached plot in SAS by using an
annotate dataset to put the N's at the bottom. Now, I'd like to move
the "Week" label up and the N's down. I can move the N's downward with
little effort, but I can't figure how how to reposition the axis label
"Week". Any hints? Here's my axis and gplot statements:

axis1 order=(0 to &MAXWK by 4) label=(h=1.5) ;
axis2 order=(0 to 2.5 by 0.1) label=(h=1.3 angle=90 "ALT: Mean Multiple of
the
ULN") ;

%ps(&DIR1/alt_uln_multiple.eps,replace);
goptions dev=pslepsf hsize=6in vsize=4in ;
proc gplot data=mnbygrp anno=anno ;
plot meanplot*calwk /haxis=axis1 vaxis=axis2 legend=legend1 noframe ;
run;
quit;

Similar Threads

1. SAS/Graph positioning the graph

2. Axis for SAS Graph

3. Axis Statement in SAS/Graph

4. is there length limitation for value on the AXIS, SAS/Graph

Hi, Sas-L,

I got the follwoing warning message in the log window after run the proc
gchart.

WARNING: The values of countyGP have been truncated to 32 characters.

the varaible countygp has four levels. I assoicated an user-defined format
with it.


the code is here:

axis2 offset=(1in) split=","
      label=( F=SWISSxb H=1.3  c=black "RESIDENCE")
        value=(h=0.8 F=SWISSxb );
proc gchart data=tumor gout=d1.page7;
 vbar pt_countygp/discrete raxis=axis1 MAXIS=AXIS2 annotate=labels
              midpoints=1 2 3 4 patternid=midpoint
              NOframe type=pct  WIDTH=6 SPAce=6
               format countygp ctyfmt.;
run;
quit;

I tried several things like changing offset ,decreasing the font size,
increasing the group space, etc with no luck.

inceIs there any way I can display the whole thing on the axis without
truncation?


Thanks in advance!

Yu

5. SAS/Graph Axis Question

6. SAS Graph - Odd Axis Labels problems

All,
     I am using a PROC GPLOT to generate a bar-line chart in a report.
The x-axis comprises SAS dates - data points for 13 months. I want the
months to appear in the label on a quarterly basis, and am specifying
the appropriate interval in the AXIS statement. Strangely, the code
prints the quarterly axes labels correctly for one month while in the
next month it prints it at every half year.
     I did a diff on the two versions of the code for each month, and
both of them are the same. Is anybody aware of any reason why this may
happen? Thanks in advance.

Anindya

Code -

(In the first instance which works, t12m_start gets resolved to MAR07
and reporting month to MAR08 while in the second case it gets resolved
to APR07 and APR08 respectively)

axis1 label=none offset=(0,2) order=(0 to 0.2 by .04)
      major=(h=-1) minor=none value=(h=4);
axis2 label=none offset=(0,2) order=(0 to 0.16 by .04) major=none
minor=none value=none
      style=0;
axis3 label=none offset=(5,5) order=("&t12m_start"d to
"&reporting_month"d by quarter)
      value=(color=black height=5 angle=55 rotate=0)
          major=(width=3) minor=none length=80pct;

symbol1 interpol=needle value=none width=20 color=&firstbarclr;
symbol2 interpol=spline value=none width=2 height=1 ;
symbol3 interpol=spline value=none width=2 height=1 ;
symbol4 interpol=spline value=none width=2 height=1 ;

legend1 label=none shape=symbol(4,2) value=(h=4 'Loss' 'Costs' 'Revenue')
        /*position=(bottom center outside)*/ origin=(30pct,);

7. SAS/Graph Axis & Label

8. moving axis to middle of graph

Greetings -

I'm using gplot to generate a graph where the vertical axis will go from
-50 to 50.  I've been trying to figure out a way to plot the horizonatal
axis in the middle of the graph, i.e., at zero.

It would be simple to use the annotate macros to draw the axis at zero,
but then I can't figure out how to suppress the axis at -50.

Would anyone have a suggestion how to move the bottom axis with a minimum
number of keystrokes?

Many thanks in advance - Deb