The SAS Output Delivery System and reporting techniques

Graph Margins/Font

Reply
N/A
Posts: 0

Graph Margins/Font

I've been trying to control the margins for this graph via the OPTIONS statement above the ODS code using TOPMARGIN, BOTTOMMAGRIN but they don't seem to have any effect.

Also, I've been trying to use Courier New font by using in GOPTIONS DEVICE = SASEMF, although this gives the desired font, the actual graphical image becomes very poor in comparison to using DEVICE = CGMOF97L.

Much appreciate any thoughts on this.

(sorry I see my datalines data has become squashed, PCTPTREF is either 'PARTB DAY-1 DOSE1 ' or 'PARTB DAY12 DOSE12' and PCTPTNUM are values from 0 through to 19.5.)


DATA PC;
INPUT TREAT $ 1-9 PCTPTREF $ 10-28 PCTPTNUM 29-33 MEAN1 34-46;
DATALINES;
PLACEBO PARTB DAY-1 DOSE1 0 7.8454133333
PLACEBO PARTB DAY-1 DOSE1 1 10.842953333
PLACEBO PARTB DAY-1 DOSE1 2 10.741185
PLACEBO PARTB DAY-1 DOSE1 3.5 9.1008645
PLACEBO PARTB DAY-1 DOSE1 5 6.82773
PLACEBO PARTB DAY-1 DOSE1 6 9.54772
PLACEBO PARTB DAY-1 DOSE1 7 10.065813333
PLACEBO PARTB DAY-1 DOSE1 8.5 8.65956
PLACEBO PARTB DAY-1 DOSE1 10 7.4725711667
PLACEBO PARTB DAY-1 DOSE1 12 9.7216513333
PLACEBO PARTB DAY-1 DOSE1 15 8.243235
PLACEBO PARTB DAY-1 DOSE1 19.5 7.5863666667
PLACEBO PARTB DAY12 DOSE12 0 7.1469125
PLACEBO PARTB DAY12 DOSE12 1 11.148258333
PLACEBO PARTB DAY12 DOSE12 2 11.333291667
PLACEBO PARTB DAY12 DOSE12 3.5 7.9073995
PLACEBO PARTB DAY12 DOSE12 5 5.9941548333
PLACEBO PARTB DAY12 DOSE12 6 9.8900316667
PLACEBO PARTB DAY12 DOSE12 7 9.9732966667
PLACEBO PARTB DAY12 DOSE12 8.5 8.27099
PLACEBO PARTB DAY12 DOSE12 10 6.189365
PLACEBO PARTB DAY12 DOSE12 12 11.370298333
PLACEBO PARTB DAY12 DOSE12 15 8.2478608333
PLACEBO PARTB DAY12 DOSE12 19.5 6.7148596667
DRUG PARTB DAY-1 DOSE1 0 7.30597
DRUG PARTB DAY-1 DOSE1 1 10.16687
DRUG PARTB DAY-1 DOSE1 2 9.57761
DRUG PARTB DAY-1 DOSE1 3.5 7.716744
DRUG PARTB DAY-1 DOSE1 5 6.292699
DRUG PARTB DAY-1 DOSE1 6 9.34276
DRUG PARTB DAY-1 DOSE1 7 9.30433
DRUG PARTB DAY-1 DOSE1 8.5 7.7591878
DRUG PARTB DAY-1 DOSE1 10 6.831573
DRUG PARTB DAY-1 DOSE1 12 10.04731
DRUG PARTB DAY-1 DOSE1 15 7.89096
DRUG PARTB DAY-1 DOSE1 19.5 7.077098
DRUG PARTB DAY12 DOSE12 0 4.69475825
DRUG PARTB DAY12 DOSE12 1 7.04977
DRUG PARTB DAY12 DOSE12 2 6.4118675833
DRUG PARTB DAY12 DOSE12 3.5 4.19239275
DRUG PARTB DAY12 DOSE12 5 3.9527745833
DRUG PARTB DAY12 DOSE12 6 6.7079209167
DRUG PARTB DAY12 DOSE12 7 6.1833514167
DRUG PARTB DAY12 DOSE12 8.5 4.7729348333
DRUG PARTB DAY12 DOSE12 10 3.7978091667
DRUG PARTB DAY12 DOSE12 12 6.71809775
DRUG PARTB DAY12 DOSE12 15 5.5320340833
DRUG PARTB DAY12 DOSE12 19.5 4.0323389167
;


**** CREATE GRP VARIABLE FOR USE IN GPLOT STATEMENT, MUST COMBINE
**** TREATMENT GROUP AND TREATMENT DAY INTO ONE VARIABLE;
DATA PC1;
SET PC;
IF TREAT = 'PLACEBO' AND SUBSTR(PCTPTREF,10,2) = '-1' THEN GRP = 'Placebo Day -1';
ELSE IF TREAT = 'PLACEBO' AND SUBSTR(PCTPTREF,10,2) = '12' THEN GRP = 'Placebo Day 12';
ELSE IF TREAT = 'DRUG' AND SUBSTR(PCTPTREF,10,2) = '-1' THEN GRP = 'GX Day -1';
ELSE IF TREAT = 'DRUG' AND SUBSTR(PCTPTREF,10,2) = '12' THEN GRP = 'GX Day 12';
RUN;


**** OPEN ODS DESTINATION;
OPTIONS ORIENTATION=LANDSCAPE TOPMARGIN=2IN BOTTOMMARGIN=1IN;
ODS LISTING CLOSE;
ODS NORESULTS;
ODS RTF FILE="C:\TEMP\TEST1.RTF";


**** RESSET GRAPHIC OPTIONS, SET HEIGHT AND WIDTH OF GRAPH;
GOPTIONS RESET = ALL
VSIZE = 6IN
HSIZE = 9IN
DEVICE = CGMOF97L
COLORS = (BLACK)
FTEXT = 'SIMPLEX';


**** DEFINE PLOT SYMBOLS;
SYMBOL1 C = BLACK LINE = 1 V = SQUARE I = J L = 2 WIDTH = 2;
SYMBOL2 C = BLACK LINE = 2 V = TRIANGLE I = J L = 1 WIDTH = 2;
SYMBOL3 C = BLACK LINE = 3 V = CIRCLE I = J L = 2 WIDTH = 2;
SYMBOL4 C = BLACK LINE = 4 V = DOT I = J L = 1 WIDTH = 2;


**** DEFINE HORIZONTAL AXIS OPTIONS.;
AXIS1 ORDER = (0 to 24 by 4)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.0 "Time (Hours)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE VERTICAL AXIS OPTIONS.;
AXIS2 ORDER = (3 to 15 by 3)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.0 ANGLE = 90 "Average Glucose (mmol/l)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE THE LEGEND FOR THE TOP RIGHT OF THE GRAPH.;
LEGEND1 LABEL = NONE
VALUE = (HEIGHT = 1.0 JUSTIFY = left
"GX Day -1" "GX Day 12" "Placebo Day -1" "Placebo Day 12")
DOWN = 4
OFFSET = (-5 pct,-5 pct)
POSITION = (top right inside)
MODE = protect
FRAME;


**** CREATE LINE PLOT;
PROC GPLOT DATA = PC1;
PLOT MEAN1 * PCTPTNUM = GRP /HAXIS = AXIS1
VAXIS = AXIS2
LEGEND = LEGEND1
VREF = 3 6 9 12;

**** TITLES FOR FIGURES;
TITLE1 J=C HEIGHT=10pt "GX and Placebo profile VS Time";
TITLE2 J=C HEIGHT=10pt "(Page 1 of 1)";

**** FOOTNOTES FOR FIGURES;
FOOTNOTE1 " ";
FOOTNOTE3 J=L HEIGHT=9pt "Date/Time Graph Produced: %SYSFUNC(DATE(),DATE9.) %SYSFUNC(TIME(),TIME5.)";


RUN;
QUIT;

ODS RTF CLOSE;
ODS RESULTS;
ODS LISTING;
Super Contributor
Posts: 291

Re: Graph Margins/Font

Jman;

You will likely find this document helpful for the resolution and font problems. http://support.sas.com/techsup/technote/ts674/ts674.html

You may also need to do some work in proc template to set the margins and add a style option to the ods rtf statement, e.g.

proc template;
define style mytheme;
parent=styles.theme;
replace Body from Document
"Undef margins so we get the margins from the printer or SYS option"
/
bottommargin = 0.19in
topmargin = 0.19in
rightmargin = 0.20in
leftmargin = 0.20in;
end;
run;
Super Contributor
Posts: 273

Re: Graph Margins/Font

Jman,

You have a problem with this option i=j Do you really want vertical interpol lines?
Another point is
WARNING: The numeric ORDER= list on axis statement 1 was ignored because the axis labeled day represents a character variable.

About title and eventual Ftitle goptions Simplex sas font is substitued to hardware font
but the other goptions are working ftext=


read this pgm
and note another template
and title2 and 3
and some other modifications without a gdevice as we are in a rtf context

Andre

[pre]
DATA PC;
INPUT TREAT $ PCTPTREF $ day $ dose $ PCTPTNUM MEAN1 ;
DATALINES;
PLACEBO PARTB DAY-1 DOSE1 0 7.8454133333
PLACEBO PARTB DAY-1 DOSE1 1 10.842953333
PLACEBO PARTB DAY-1 DOSE1 2 10.741185
PLACEBO PARTB DAY-1 DOSE1 3.5 9.1008645
PLACEBO PARTB DAY-1 DOSE1 5 6.82773
PLACEBO PARTB DAY-1 DOSE1 6 9.54772
PLACEBO PARTB DAY-1 DOSE1 7 10.065813333
PLACEBO PARTB DAY-1 DOSE1 8.5 8.65956
PLACEBO PARTB DAY-1 DOSE1 10 7.4725711667
PLACEBO PARTB DAY-1 DOSE1 12 9.7216513333
PLACEBO PARTB DAY-1 DOSE1 15 8.243235
PLACEBO PARTB DAY-1 DOSE1 19.5 7.5863666667
PLACEBO PARTB DAY12 DOSE12 0 7.1469125
PLACEBO PARTB DAY12 DOSE12 1 11.148258333
PLACEBO PARTB DAY12 DOSE12 2 11.333291667
PLACEBO PARTB DAY12 DOSE12 3.5 7.9073995
PLACEBO PARTB DAY12 DOSE12 5 5.9941548333
PLACEBO PARTB DAY12 DOSE12 6 9.8900316667
PLACEBO PARTB DAY12 DOSE12 7 9.9732966667
PLACEBO PARTB DAY12 DOSE12 8.5 8.27099
PLACEBO PARTB DAY12 DOSE12 10 6.189365
PLACEBO PARTB DAY12 DOSE12 12 11.370298333
PLACEBO PARTB DAY12 DOSE12 15 8.2478608333
PLACEBO PARTB DAY12 DOSE12 19.5 6.7148596667
DRUG PARTB DAY-1 DOSE1 0 7.30597
DRUG PARTB DAY-1 DOSE1 1 10.16687
DRUG PARTB DAY-1 DOSE1 2 9.57761
DRUG PARTB DAY-1 DOSE1 3.5 7.716744
DRUG PARTB DAY-1 DOSE1 5 6.292699
DRUG PARTB DAY-1 DOSE1 6 9.34276
DRUG PARTB DAY-1 DOSE1 7 9.30433
DRUG PARTB DAY-1 DOSE1 8.5 7.7591878
DRUG PARTB DAY-1 DOSE1 10 6.831573
DRUG PARTB DAY-1 DOSE1 12 10.04731
DRUG PARTB DAY-1 DOSE1 15 7.89096
DRUG PARTB DAY-1 DOSE1 19.5 7.077098
DRUG PARTB DAY06 DOSE12 0 4.69475825
DRUG PARTB DAY06 DOSE12 1 7.04977
DRUG PARTB DAY06 DOSE12 2 6.4118675833
DRUG PARTB DAY06 DOSE12 3.5 4.19239275
DRUG PARTB DAY06 DOSE12 5 3.9527745833
DRUG PARTB DAY06 DOSE12 6 6.7079209167
DRUG PARTB DAY06 DOSE12 7 6.1833514167
DRUG PARTB DAY06 DOSE12 8.5 4.7729348333
DRUG PARTB DAY06 DOSE12 10 3.7978091667
DRUG PARTB DAY06 DOSE12 12 6.71809775
DRUG PARTB DAY06 DOSE12 15 5.5320340833
DRUG PARTB DAY06 DOSE12 19.5 4.0323389167
DRUG PARTB DAY12 DOSE12 0 4.69475825
DRUG PARTB DAY12 DOSE12 1 7.04977
DRUG PARTB DAY12 DOSE12 2 6.4118675833
DRUG PARTB DAY12 DOSE12 3.5 4.19239275
DRUG PARTB DAY12 DOSE12 5 3.9527745833
DRUG PARTB DAY12 DOSE12 6 6.7079209167
DRUG PARTB DAY12 DOSE12 7 6.1833514167
DRUG PARTB DAY12 DOSE12 8.5 4.7729348333
DRUG PARTB DAY12 DOSE12 10 3.7978091667
DRUG PARTB DAY12 DOSE12 12 6.71809775
DRUG PARTB DAY12 DOSE12 15 5.5320340833
DRUG PARTB DAY12 DOSE12 19.5 4.0323389167
;
run;

**** CREATE GRP VARIABLE FOR USE IN GPLOT STATEMENT, MUST COMBINE
**** TREATMENT GROUP AND TREATMENT DAY INTO ONE VARIABLE;
DATA PC1;
SET PC;
IF TREAT = 'PLACEBO' AND SUBSTR(day,4,2) = '-1' THEN GRP = 'Placebo Day -1';
ELSE IF TREAT = 'PLACEBO' AND SUBSTR(day,4,2) = '12' THEN GRP = 'Placebo Day 12';
ELSE IF TREAT = 'DRUG' AND SUBSTR(day,4,2) = '-1' THEN GRP = 'GX Day -1';
ELSE IF TREAT = 'DRUG' AND SUBSTR(day,4,2) = '12' THEN GRP = 'GX Day 12';
RUN;

proc template;
define style mytheme;
parent=styles.theme;
replace Body from Document
"Undef margins so we get the margins from the printer or SYS option"
/
bottommargin =_undef_
topmargin =_undef_
rightmargin =_undef_
leftmargin = _undef_;
end;
run;
**** OPEN ODS DESTINATION;
OPTIONS ORIENTATION=LANDSCAPE TOPMARGIN=0.1 IN BOTTOMMARGIN=0.5 IN nodate;
ODS LISTING CLOSE;
ODS NORESULTS;
ODS RTF FILE="d:\TEMP\marginsgraf1.RTF" style=mytheme;


**** RESSET GRAPHIC OPTIONS, SET HEIGHT AND WIDTH OF GRAPH;
GOPTIONS RESET = ALL
VSIZE = 6IN
HSIZE = 9IN
/* DEVICE = CGMOF97L*/
COLORS = (BLACK)
FTITLE = "SIMPLEX"
FTEXT = "Arial/Italic/Bold";


**** DEFINE PLOT SYMBOLS;
SYMBOL1 C = BLACK LINE = 1 V = SQUARE I=j L=2 WIDTH=2;
SYMBOL2 C = BLACK LINE = 2 V = TRIANGLE I=j L=1 WIDTH=2;
SYMBOL3 C = BLACK LINE = 3 V = CIRCLE I=j L=2 WIDTH=2;
SYMBOL4 C = BLACK LINE = 4 V = DOT I=j L=1 WIDTH=2;


**** DEFINE HORIZONTAL AXIS OPTIONS.;
AXIS1 ORDER = (0 to 24 by 4)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.5 "Time (Hours)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE VERTICAL AXIS OPTIONS.;
AXIS2 ORDER = (3 to 15 by 3)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.5 ANGLE = 90 "Average Glucose (mmol/l)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE THE LEGEND FOR THE TOP RIGHT OF THE GRAPH.;
LEGEND1 LABEL = NONE
VALUE = (HEIGHT = 1.0 JUSTIFY = left
"GX Day -1" "GX Day 12" "Placebo Day -1" "Placebo Day 12")
DOWN = 4
OFFSET = (-5 pct,-5 pct)
POSITION = (top right inside)
MODE = protect
FRAME;


**** CREATE LINE PLOT;
PROC GPLOT DATA = PC1;
PLOT MEAN1 * day = GRP /HAXIS = AXIS1
VAXIS = AXIS2
LEGEND = LEGEND1
VREF = 3 6 9 12;

**** TITLES FOR FIGURES;
TITLE2 J=C HEIGHT=15pt "GX and Placebo profile VS Time";
TITLE3 J=C HEIGHT=8pt "(Page 1 of 1)";

**** FOOTNOTES FOR FIGURES;
FOOTNOTE1 " ";
FOOTNOTE3 J=L HEIGHT=9pt "Date/Time Graph Produced: %SYSFUNC(DATE(),DATE9.) %SYSFUNC(TIME(),TIME5.)";


RUN;
QUIT;

ODS RTF CLOSE;
ODS RESULTS;
ODS LISTING;

[/pre]
N/A
Posts: 0

Re: Graph Margins/Font

Hi guys, thanks very much for the responses, sorry I've not been able to look at this recently!

Hi Andre, that helped me a bundle, I've modified your modified code to get the output I was hoping for. I definitely wanted to plot the MEAN1 variable against PCTPTNUM for the 4 different GRP values, which should get rid of the character warning and give a standard curve plot and not vertical lines.



DATA PC;
INPUT TREAT $ PCTPTREF $ day $ dose $ PCTPTNUM MEAN1 ;
DATALINES;
PLACEBO PARTB DAY-1 DOSE1 0 7.8454133333
PLACEBO PARTB DAY-1 DOSE1 1 10.842953333
PLACEBO PARTB DAY-1 DOSE1 2 10.741185
PLACEBO PARTB DAY-1 DOSE1 3.5 9.1008645
PLACEBO PARTB DAY-1 DOSE1 5 6.82773
PLACEBO PARTB DAY-1 DOSE1 6 9.54772
PLACEBO PARTB DAY-1 DOSE1 7 10.065813333
PLACEBO PARTB DAY-1 DOSE1 8.5 8.65956
PLACEBO PARTB DAY-1 DOSE1 10 7.4725711667
PLACEBO PARTB DAY-1 DOSE1 12 9.7216513333
PLACEBO PARTB DAY-1 DOSE1 15 8.243235
PLACEBO PARTB DAY-1 DOSE1 19.5 7.5863666667
PLACEBO PARTB DAY12 DOSE12 0 7.1469125
PLACEBO PARTB DAY12 DOSE12 1 11.148258333
PLACEBO PARTB DAY12 DOSE12 2 11.333291667
PLACEBO PARTB DAY12 DOSE12 3.5 7.9073995
PLACEBO PARTB DAY12 DOSE12 5 5.9941548333
PLACEBO PARTB DAY12 DOSE12 6 9.8900316667
PLACEBO PARTB DAY12 DOSE12 7 9.9732966667
PLACEBO PARTB DAY12 DOSE12 8.5 8.27099
PLACEBO PARTB DAY12 DOSE12 10 6.189365
PLACEBO PARTB DAY12 DOSE12 12 11.370298333
PLACEBO PARTB DAY12 DOSE12 15 8.2478608333
PLACEBO PARTB DAY12 DOSE12 19.5 6.7148596667
DRUG PARTB DAY-1 DOSE1 0 7.30597
DRUG PARTB DAY-1 DOSE1 1 10.16687
DRUG PARTB DAY-1 DOSE1 2 9.57761
DRUG PARTB DAY-1 DOSE1 3.5 7.716744
DRUG PARTB DAY-1 DOSE1 5 6.292699
DRUG PARTB DAY-1 DOSE1 6 9.34276
DRUG PARTB DAY-1 DOSE1 7 9.30433
DRUG PARTB DAY-1 DOSE1 8.5 7.7591878
DRUG PARTB DAY-1 DOSE1 10 6.831573
DRUG PARTB DAY-1 DOSE1 12 10.04731
DRUG PARTB DAY-1 DOSE1 15 7.89096
DRUG PARTB DAY-1 DOSE1 19.5 7.077098
DRUG PARTB DAY12 DOSE12 0 4.69475825
DRUG PARTB DAY12 DOSE12 1 7.04977
DRUG PARTB DAY12 DOSE12 2 6.4118675833
DRUG PARTB DAY12 DOSE12 3.5 4.19239275
DRUG PARTB DAY12 DOSE12 5 3.9527745833
DRUG PARTB DAY12 DOSE12 6 6.7079209167
DRUG PARTB DAY12 DOSE12 7 6.1833514167
DRUG PARTB DAY12 DOSE12 8.5 4.7729348333
DRUG PARTB DAY12 DOSE12 10 3.7978091667
DRUG PARTB DAY12 DOSE12 12 6.71809775
DRUG PARTB DAY12 DOSE12 15 5.5320340833
DRUG PARTB DAY12 DOSE12 19.5 4.0323389167
;
run;

**** CREATE GRP VARIABLE FOR USE IN GPLOT STATEMENT, MUST COMBINE
**** TREATMENT GROUP AND TREATMENT DAY INTO ONE VARIABLE;
DATA PC1;
SET PC;
IF TREAT = 'PLACEBO' AND SUBSTR(day,4,2) = '-1' THEN GRP = 'Placebo Day -1';
ELSE IF TREAT = 'PLACEBO' AND SUBSTR(day,4,2) = '12' THEN GRP = 'Placebo Day 12';
ELSE IF TREAT = 'DRUG' AND SUBSTR(day,4,2) = '-1' THEN GRP = 'GX Day -1';
ELSE IF TREAT = 'DRUG' AND SUBSTR(day,4,2) = '12' THEN GRP = 'GX Day 12';
RUN;

proc template;
define style mytheme;
parent=styles.theme;
replace Body from Document
"Undef margins so we get the margins from the printer or SYS option"
/
bottommargin =_undef_
topmargin =_undef_
rightmargin =_undef_
leftmargin = _undef_;
end;
run;
**** OPEN ODS DESTINATION;
OPTIONS ORIENTATION=LANDSCAPE TOPMARGIN=0.1 IN BOTTOMMARGIN=0.5 IN nodate;
ODS LISTING CLOSE;
ODS NORESULTS;
ODS RTF FILE="c:\TEMP\marginsgraf1.RTF" style=mytheme;


**** RESSET GRAPHIC OPTIONS, SET HEIGHT AND WIDTH OF GRAPH;
GOPTIONS RESET = ALL
VSIZE = 6IN
HSIZE = 9IN
/* DEVICE = CGMOF97L*/
COLORS = (BLACK)
FTITLE = "SIMPLEX"
FTEXT = "Arial/Italic/Bold";


**** DEFINE PLOT SYMBOLS;
SYMBOL1 C = BLACK LINE = 1 V = SQUARE I=j L=2 WIDTH=1;
SYMBOL2 C = BLACK LINE = 2 V = TRIANGLE I=j L=1 WIDTH=1;
SYMBOL3 C = BLACK LINE = 3 V = CIRCLE I=j L=2 WIDTH=1;
SYMBOL4 C = BLACK LINE = 4 V = DOT I=j L=1 WIDTH=1;


**** DEFINE HORIZONTAL AXIS OPTIONS.;
AXIS1 ORDER = (0 to 24 by 4)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.5 "Time (Hours)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE VERTICAL AXIS OPTIONS.;
AXIS2 ORDER = (3 to 15 by 3)
VALUE = (HEIGHT = 1.0)
LABEL = (HEIGHT = 1.5 ANGLE = 90 "Average Glucose (mmol/l)")
MINOR = NONE
OFFSET = (0,0);


**** DEFINE THE LEGEND FOR THE TOP RIGHT OF THE GRAPH.;
LEGEND1 LABEL = NONE
VALUE = (HEIGHT = 1.0 JUSTIFY = left
"GX Day -1" "GX Day 12" "Placebo Day -1" "Placebo Day 12")
DOWN = 4
OFFSET = (-5 pct,-5 pct)
POSITION = (top right inside)
MODE = protect
FRAME;


**** CREATE LINE PLOT;
PROC GPLOT DATA = PC1;
PLOT MEAN1 * PCTPTNUM = GRP /HAXIS = AXIS1
VAXIS = AXIS2
LEGEND = LEGEND1
VREF = 3 6 9 12;

**** TITLES FOR FIGURES;
TITLE2 J=C HEIGHT=15pt "GX and Placebo profile VS Time";
TITLE3 J=C HEIGHT=8pt "(Page 1 of 1)";

**** FOOTNOTES FOR FIGURES;
FOOTNOTE1 " ";
FOOTNOTE3 J=L HEIGHT=9pt "Date/Time Graph Produced: %SYSFUNC(DATE(),DATE9.) %SYSFUNC(TIME(),TIME5.)";


RUN;
QUIT;

ODS RTF CLOSE;
ODS RESULTS;
ODS LISTING;
Super Contributor
Posts: 291

Re: Graph Margins/Font

Jman;

per the document referenced earlier, I would understand that a png file would be best for rtf.
Super Contributor
Posts: 273

Re: Graph Margins/Font

Jman

curve well check the manual at
http://support.sas.com/onlinedoc/913/getDoc/fr/graphref.hlp/symbolchap.htm
to understand the mathematical underground around interpolling

or/and take a look at other possibilities

SYMBOL1 C = BLACK LINE = 1 V =STAR I=SPLINEP L=2 WIDTH=1;
SYMBOL2 C = BLACK LINE = 2 V = TRIANGLE I=j L=1 WIDTH=1;
SYMBOL3 C = BLACK LINE = 3 V = CIRCLE I=j L=2 WIDTH=1;
SYMBOL4 C = BLACK LINE = 4 V = DOT I=SPLINES L=1 WIDTH=1;


Bill
by default in ods rtf destination the device is SASEMF in 9.1.3
and EMF (vectorial) in 9.2
PNG has limits and provoke here warnings about the dimension

HTH

Andre
N/A
Posts: 0

Re: Graph Margins/Font

Thank you.

One last problem with this graph, the label 'Placebo Day -12' is too long for the legend box and is running outside the frame, is there anyway to directly change the dimensions of the legend box?
Super Contributor
Posts: 273

Re: Graph Margins/Font

Height is the only way i think
as the legend is an automatic process
where the frame has no dimension parameters
except origin and offset for placement
without dimension
Andre
Ask a Question
Discussion stats
  • 7 replies
  • 224 views
  • 0 likes
  • 3 in conversation