home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!LIVERPOOL.AC.UK!SBYRNE
- Via: uk.ac.liverpool.ibm; Wed, 26 Aug 1992 17:07:55 +0100
- Message-ID: <SAS-L%92082612082786@VTVM2.BITNET>
- Newsgroups: bit.listserv.sas-l
- Date: Wed, 26 Aug 1992 17:03:17 BST
- Reply-To: Sue Byrne <SBYRNE@LIVERPOOL.AC.UK>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Sue Byrne <SBYRNE@LIVERPOOL.AC.UK>
- Subject: SAS Graph; Dates on x-axis
- Comments: To: sas-l@vtvm2.cc.vt.edu
- Lines: 397
-
- I hope somone can provide a solution to the following query for me:
-
- One of our users has written a SAS program, listed at the end of
- this mail message, to plot average temperatures against dates for the
- time period 1Aug89 to 31July90. The plot is produced fine, but the x-axis
- is automatically labelled with the following values: 27JUL89 04NOV89 12FEB90
- 23MAY90 31AUG90. The user would prefer the labels to be displayed
- as the first of a month, eg 01Aug89 01Oct89 01Dec89 01Feb90 .. etc.
- The question we are asking is how to get SAS Graph to allow us to specify
- which actual date values are used to mark the x axis.
- We are using SAS 6.07 on a Sun 4.
-
- Please reply to my username and I will summarize to the list. Thanks in
- anticipation for your help. The program follows ...
-
- Sue Byrne.
-
-
- GOPTIONS DEVICE=XCOLOR COLORS=(WHITE RED GREEN BLUE) GSFMODE=REPLACE;
- DATA MD;
- INPUT day Date7. min max;
- FORMAT day Date7.;
- MISSING M;
- mean = (min + max) / 2;
- CARDS;
- 1Aug89 12 18
- 2Aug89 14 18
- 3Aug89 16 19
- 4Aug89 13 20
- 5Aug89 12 23
- 6Aug89 17 24
- 7Aug89 17 24
- 8Aug89 14 24
- 9Aug89 17 22
- 10Aug89 17 21
- 11Aug89 13 20
- 12Aug89 14 20
- 13Aug89 14 20
- 14Aug89 13 21
- 15Aug89 14 22
- 16Aug89 14 24
- 17Aug89 12 24
- 18Aug89 M M
- 19Aug89 M M
- 20Aug89 M M
- 21Aug89 M M
- 22Aug89 M M
- 23Aug89 M M
- 24Aug89 M M
- 25Aug89 M M
- 26Aug89 M M
- 27Aug89 M M
- 28Aug89 M M
- 29Aug89 13 19
- 30Aug89 15 21
- 31Aug89 12 17
- 1Sep89 12 18
- 2Sep89 11 17
- 3Sep89 8 18
- 4Sep89 10 17
- 5Sep89 11 19
- 6Sep89 12 21
- 7Sep89 12 18
- 8Sep89 14 16
- 9Sep89 12 15
- 10Sep89 12 16
- 11Sep89 14 19
- 12Sep89 14 18
- 13Sep89 14 16
- 14Sep89 11 15
- 15Sep89 12 19
- 16Sep89 12 19
- 17Sep89 12 17
- 18Sep89 14 20
- 19Sep89 13 19
- 20Sep89 15 21
- 21Sep89 14 23
- 22Sep89 15 21
- 23Sep89 11 23
- 24Sep89 12 21
- 25Sep89 M M
- 26Sep89 13 19
- 27Sep89 12 15
- 28Sep89 11 18
- 29Sep89 9 20
- 30Sep89 8 22
- 1Oct89 12 15
- 2Oct89 6 21
- 3Oct89 5 19
- 4Oct89 11 20
- 5Oct89 9 14
- 6Oct89 9 14
- 7Oct89 11 13
- 8Oct89 M M
- 9Oct89 12 14
- 10Oct89 12 13
- 11Oct89 12 17
- 12Oct89 13 15
- 13Oct89 8 14
- 14Oct89 8 13
- 15Oct89 5 14
- 16Oct89 13 17
- 17Oct89 9 21
- 18Oct89 5 18
- 19Oct89 8 16
- 20Oct89 9 14
- 21Oct89 11 14
- 22Oct89 9 12
- 23Oct89 9 15
- 24Oct89 M M
- 25Oct89 11 14
- 26Oct89 8 15
- 27Oct89 8 14
- 28Oct89 10 13
- 29Oct89 10 12
- 30Oct89 9 15
- 31Oct89 7 15
- 1Nov89 7 13
- 2Nov89 7 12
- 3Nov89 6 11
- 4Nov89 5 8
- 5Nov89 5 9
- 6Nov89 0 6
- 7Nov89 5 10
- 8Nov89 6 7
- 9Nov89 5 11
- 10Nov89 6 13
- 11Nov89 M M
- 12Nov89 M M
- 13Nov89 6 12
- 14Nov89 5 11
- 15Nov89 7 10
- 16Nov89 5 12
- 17Nov89 5 7
- 18Nov89 6 11
- 19Nov89 5 11
- 20Nov89 7 12
- 21Nov89 9 11
- 22Nov89 2 11
- 23Nov89 -1 5
- 24Nov89 -2 5
- 25Nov89 -2 7
- 26Nov89 -2 4
- 27Nov89 0 5
- 28Nov89 0 6
- 29Nov89 0 6
- 30Nov89 -2 7
- 1Dec89 0 9
- 2Dec89 -2 2
- 3Dec89 -2 2
- 4Dec89 -2 5
- 5Dec89 0 8
- 6Dec89 0 3
- 7Dec89 1 9
- 8Dec89 2 5
- 9Dec89 -1 6
- 10Dec89 2 5
- 11Dec89 -1 5
- 12Dec89 1 3
- 13Dec89 2 4
- 14Dec89 2 4
- 15Dec89 2 5
- 16Dec89 4 10
- 17Dec89 8 8
- 18Dec89 3 8
- 19Dec89 0 4
- 20Dec89 5 11
- 21Dec89 8 10
- 22Dec89 5 9
- 23Dec89 5 7
- 24Dec89 8 11
- 25Dec89 5 11
- 26Dec89 1 6
- 27Dec89 0 6
- 28Dec89 3 8
- 29Dec89 2 6
- 30Dec89 M M
- 31Dec89 M M
- 1Jan90 M M
- 2Jan90 3 8
- 3Jan90 5 8
- 4Jan90 4 9
- 5Jan90 5 10
- 6Jan90 2 10
- 7Jan90 -1 8
- 8Jan90 2 8
- 9Jan90 -1 6
- 10Jan90 2 5
- 11Jan90 -1 5
- 12Jan90 5 11
- 13Jan90 1 6
- 14Jan90 1 9
- 15Jan90 10 13
- 16Jan90 8 12
- 17Jan90 6 7
- 18Jan90 6 9
- 19Jan90 5 8
- 20Jan90 5 11
- 21Jan90 10 12
- 22Jan90 8 12
- 23Jan90 5 8
- 24Jan90 4 6
- 25Jan90 5 5
- 26Jan90 2 8
- 27Jan90 0 5
- 28Jan90 2 6
- 29Jan90 3 10
- 30Jan90 7 10
- 31Jan90 6 8
- 1Feb90 5 8
- 2Feb90 6 7
- 3Feb90 4 9
- 4Feb90 7 12
- 5Feb90 11 16
- 6Feb90 8 11
- 7Feb90 11 11
- 8Feb90 4 9
- 9Feb90 5 12
- 10Feb90 6 8
- 11Feb90 4 7
- 12Feb90 3 5
- 13Feb90 7 7
- 14Feb90 4 8
- 15Feb90 1 7
- 16Feb90 -1 12
- 17Feb90 5 12
- 18Feb90 6 12
- 19Feb90 7 14
- 20Feb90 9 13
- 21Feb90 8 12
- 22Feb90 9 13
- 23Feb90 8 14
- 24Feb90 8 11
- 25Feb90 8 9
- 26Feb90 5 9
- 27Feb90 5 6
- 28Feb90 2 8
- 1Mar90 0 6
- 2Mar90 1 7
- 3Mar90 7 10
- 4Mar90 8 9
- 5Mar90 9 10
- 6Mar90 11 12
- 7Mar90 9 13
- 8Mar90 11 12
- 9Mar90 6 10
- 10Mar90 8 13
- 11Mar90 7 14
- 12Mar90 6 17
- 13Mar90 6 14
- 14Mar90 6 14
- 15Mar90 9 14
- 16Mar90 10 18
- 17Mar90 8 21
- 18Mar90 9 21
- 19Mar90 7 19
- 20Mar90 4 16
- 21Mar90 9 19
- 22Mar90 9 13
- 23Mar90 10 11
- 24Mar90 5 9
- 25Mar90 5 18
- 26Mar90 -1 16
- 27Mar90 0 13
- 28Mar90 2 15
- 29Mar90 2 12
- 30Mar90 M M
- 31Mar90 M M
- 1Apr90 M M
- 2Apr90 6 14
- 3Apr90 0 9
- 4Apr90 -1 12
- 5Apr90 -1 9
- 6Apr90 5 18
- 7Apr90 1 14
- 8Apr90 0 18
- 9Apr90 8 11
- 10Apr90 9 14
- 11Apr90 8 14
- 12Apr90 9 17
- 13Apr90 6 13
- 14Apr90 3 11
- 15Apr90 6 12
- 16Apr90 4 11
- 17Apr90 3 11
- 18Apr90 3 12
- 19Apr90 5 11
- 20Apr90 5 14
- 21Apr90 8 20
- 22Apr90 6 24
- 23Apr90 5 24
- 24Apr90 4 24
- 25Apr90 5 22
- 26Apr90 8 12
- 27Apr90 3 15
- 28Apr90 1 19
- 29Apr90 6 21
- 30Apr90 6 30
- 1May90 10 30
- 2May90 9 31
- 3May90 11 32
- 4May90 12 32
- 5May90 10 21
- 6May90 8 18
- 7May90 8 18
- 8May90 8 15
- 9May90 9 13
- 10May90 6 17
- 11May90 9 15
- 12May90 8 21
- 13May90 5 24
- 14May90 7 21
- 15May90 12 18
- 16May90 11 23
- 17May90 8 21
- 18May90 10 15
- 19May90 8 18
- 20May90 10 15
- 21May90 5 24
- 22May90 7 25
- 23May90 10 21
- 24May90 8 21
- 25May90 6 26
- 26May90 7 25
- 27May90 7 24
- 28May90 8 24
- 29May90 12 19
- 30May90 12 22
- 31May90 9 25
- 1Jun90 12 19
- 2Jun90 12 15
- 3Jun90 12 15
- 4Jun90 10 20
- 5Jun90 12 17
- 6Jun90 9 14
- 7Jun90 11 18
- 8Jun90 10 14
- 9Jun90 7 19
- 10Jun90 12 21
- 11Jun90 11 17
- 12Jun90 10 15
- 13Jun90 11 20
- 14Jun90 9 18
- 15Jun90 9 20
- 16Jun90 13 23
- 17Jun90 14 24
- 18Jun90 12 21
- 19Jun90 9 19
- 20Jun90 9 19
- 21Jun90 11 18
- 22Jun90 12 17
- 23Jun90 M M
- 24Jun90 M M
- 25Jun90 14 16
- 26Jun90 15 27
- 27Jun90 15 20
- 28Jun90 12 23
- 29Jun90 11 23
- 30Jun90 15 23
- 1Jul90 12 14
- 2Jul90 12 20
- 3Jul90 9 23
- 4Jul90 11 20
- 5Jul90 12 18
- 6Jul90 12 18
- 7Jul90 12 20
- 8Jul90 17 19
- 9Jul90 9 17
- 10Jul90 12 21
- 11Jul90 13 24
- 12Jul90 12 29
- 13Jul90 14 27
- 14Jul90 M M
- 15Jul90 M M
- 16Jul90 M M
- 17Jul90 M M
- 18Jul90 M M
- 19Jul90 M M
- 20Jul90 M M
- 21Jul90 M M
- 22Jul90 14 20
- 23Jul90 16 25
- 24Jul90 12 26
- 25Jul90 12 32
- 26Jul90 17 25
- 27Jul90 14 20
- 28Jul90 14 26
- 29Jul90 12 23
- 30Jul90 18 25
- 31Jul90 12 26
- RUN;
- Proc GPlot;
- Plot mean*day/Caxis=RED
- haxis=axis1;
- Symbol I=SM20 Color=GREEN;
- Title Color=BLUE 'Average Temperature';
- Run;
-