You are on page 1of 4

/**********************************************************************

THE EUROPEAN STATE FINANCE DATABASE

5 Filename: c:\rjb\malet\malg030.doc
Purpose: To produce a line graph: 'Direct taxes levied on the pays
d'élections compared with total receipts, 1594-1643'
Date created: 1 February 1991
Date last altered:
10 SAS datasets used: c:\rjb\malet\malm032.ssd
Raw data files used:
Graphics file created: c:\rjb\malet\malg030.gsf
Source: Malet (1789); Collins, Fiscal limits of absolutism, p.162;
BN MS fr 4680
15 Source subset:
Source subset title:
Owner of file: RJ Bonney
Author of program: MMB

20 **********************************************************************/

*--------------------------------------------------------------------*
| SPECIFY GENERAL SETTINGS |
*--------------------------------------------------------------------*;
25 libname z 'c:\rjb\malet';

*--------------------------------------------------------------------*
| READ STORED DATASET(S) INTO TEMPORARY DATASET(S) |
*--------------------------------------------------------------------*;
30 data a;
set z.malm032 (keep=year pdeltot1 coltot);
run;

*--------------------------------------------------------------------*
35 | PERFORM ANY CALCULATIONS/MANIPULATIONS REQUIRED |
*--------------------------------------------------------------------*;
data a;
set a;
pdeltot1=pdeltot1/1000000;
40 coltot=coltot/1000000;
run;

*--------------------------------------------------------------------*
| SORT RESULTING DATASET BY X-AXIS VARIABLE (USUALLY YEAR) |
45 *--------------------------------------------------------------------*;
proc sort;
by year;
run;

50 *--------------------------------------------------------------------*
| SPECIFY DESTINATION FOR GRAPHIC OUTPUT |
*--------------------------------------------------------------------*;
/* Screen */
goptions dev =screen
55 hsize=0 /*To use full screen width*/
vsize=0; /*To use full screen height*/

/* Printer (draft)*/
*goptions dev=laserd /*Choose draft laser printout*/
hsize=10 /*Horizontal size of printout (inches)*/
vsize=7; /*Vertical size of printout*/

5 /* Printer (quality)*/
*goptions dev=laser
hsize=10 /*Horizontal size of printout (inches)*/
vsize=7; /*Vertical size of printout*/

10 /* File for later printing */


*filename malg030 '\rjb\malet\malg030.gsf';
*goptions gsfname=malg030
gsfmode=replace /*To replace any file of same name*/
dev=laser
15 hsize=10 /*Horizontal size of printout (inches)*/
vsize=7; /*Vertical size of printout*/

*--------------------------------------------------------------------*
| SPECIFY OTHER GENERAL GRAPHIC OPTIONS |
20 *--------------------------------------------------------------------*;
goptions nocell /*To prevent misalignment of symbols*/
nocharacters /*Ditto*/
ftitle=swiss /*Default font for first title line*/
htitle=1.4 /*Default ht for first title line*/
25 ftext=swissl /*Default font for all other text*/
htext=1 /*Default ht for all other text*/;

*--------------------------------------------------------------------*
| TITLE |
30 *--------------------------------------------------------------------*;
title1 ls=5 pct /*Leave space of 5% of screen height
above title*/
j=c /*Centre justify*/
'Graph 30: Direct taxes levied on the pays d''élections compared with'
35 ' total receipts, 1594-1643';

*--------------------------------------------------------------------*
| FOOTNOTE |
*--------------------------------------------------------------------*;
40 footnote1 m=(18,5) pct /*Position footnote 18% of screen width
from left and 5% of screen height from
bottom*/
'Source: J-R. Malet and others'
m=(47,+0) pct /*Position following text 47% of screen
45 width from left and at same height as
before*/
'\rjb\malet\malg030'
m=(75,+0) pct /*Position following text 75% of screen
width from left and at same height as
50 before*/
'Copyright ' f=special 'W' f=swissl ' ESFDB 1991';

*--------------------------------------------------------------------*
| DEFINE PLOTTING SYMBOLS |
55 *--------------------------------------------------------------------*;
symbol1 v =diamond /*Use diamond to plot points*/
i =join /*Join points with a line*/
l =1 /*Use line type no. 1*/
w =2; /*Use line of double width*/
symbol2 v =circle /*Use circle to plot points*/
i =join /*Join points with a line*/
l =1 /*Use line type no. 1*/
5 w =2; /*Use line of double width*/

*--------------------------------------------------------------------*
| DEFINE AXES |
*--------------------------------------------------------------------*;
10 /*Vertical axis*/
axis1 origin =(15,15) pct /*Position bottom of axis 15% of screen
width from left and 15% of screen height
from bottom*/
length =70 pct /*Make length of axis 70% of screen
15 size*/
width =2 /*Make axis line double width*/
order =0 to 50 by 5 /*Specify scale for axis*/
label =none; /*Suppress printing of label*/

20 /*Horizontal axis*/
axis2 origin =(15,15) pct
length =80 pct
width =2
order =1594 to 1643 by 5 /*Specify scale for axis*/
25 label =none; /*Suppress printing of label 'Year'*/

*--------------------------------------------------------------------*
| PRODUCE PLOT |
*--------------------------------------------------------------------*;
30 proc gplot;
plot pdeltot1*year=1 coltot*year=2/
overlay
vaxis=axis1
haxis=axis2
35 skipmiss; /*Skip missing values*/

/*Use a note to label vertical axis*/


note m=(2,60) pct 'Livres'
m=(2,57) pct 'Tournois'
40 m=(2,54) pct '(millions)';

/*Add a legend to explain symbols*/


note m=(25,77) pct f=special 'D'
m=(28,+0) pct f=swissl 'Malet: PDEL receipts'
45 m=(25,-2.3) pct f=special 'H'
m=(28,+0) pct f=swissl 'Tax levied from PDEL';

run;

50 /**********************************************************************

NOTES

The contents of this data file may not be reproduced without citation of the ESFDB
dataset name.

55 PDELTOT1 represents the total of receipts from the pays d'élections. COLTOT
represents the total levy in direct taxation on the pays d'élections
**********************************************************************/

You might also like