| Date: | Tue, 29 Oct 2002 20:30:33 +0100 |
| Reply-To: | anne5432@uni.de |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Annette <anne5432@UNI.DE> |
| Organization: | Annette |
| Subject: | Polishing a GPLOT: Two questions |
|
| Content-Type: | text/plain; charset="us-ascii" |
Hi,
I've written a program for a quite nice overlay GPLOT (see code below).
At last I'd like to solve two peculiarities: (1) The data lines look a
bit 'edgy'. Is there are trick to get them more smoother (e.g. just like
simple elegant and not at all edgy looking lines). I just don't know
which button to push e.g. solution, line width, height, or the like. (2)
The HAXIS shows only every second 'category' of GROUP. Is there are a
command (e.g. similar to 'discrete') to see them all? That's all! Except
these two 'beauties' the code runs perfect! Check it out! Thanks a lot
in advance! Annette
proc format ;
value GROUP
1='<5'
2='5-10'
3='10-15'
4='15-20'
5='20-25'
6='25-30'
7='30-35'
8='35-40'
9='>40'
;
data WORK.MYDATA ;
input GROUP EAST WEST TOTAL ;
datalines ;
1 5 4 5
2 9 9 9
3 12 11 12
4 13 13 13
5 15 15 15
6 20 19 19
7 35 30 40
8 70 50 80
9 140 90 120
;
run ;
filename GRAPHOUT 'C:\....gif';
goptions reset=all device=gif gsfname=GRAPHOUT gsfmode=replace
devmap=WINANSI keymap=WINANSI
xmax=12.3cm ymax=8.2cm /* <- parameters must not be changed*/
xpixels=450 ypixels=300;
/* Set the SAS/Graph options */
goptions hpos=40;
/* Symbols */
symbol1
line=1 c=BLACK ci=BLACK cv=black value=none interpol=spline width=1.8
height=10 pt;
symbol2
line=2 c=ltGRAY ci=ltGRAY cv=ltGRAY value=none interpol=spline width=1.8
height=10 pt;
symbol3
line=3 c=BLACK ci=BLACK cv=GRAY value=none interpol=spline width=1.8
height=10 pt;
/* Axis definitions */
axis1
minor=none order= (0 to 300 by 50) label=(h=0.9 ' Number' rotate=0
angle=0 ) color=black ;
axis2
minor=none label=(h=0.9 'Age groups') color=black ;
proc gplot data = WORK.MYDATA ;
plot EAST*GROUP
WEST*GROUP
TOTAL*GROUP
/ overlay vaxis=axis1 haxis=axis2 ;
format GROUP GROUP. ;
run ;
quit;
|