Data visualization with SAS programming

Two graphs on the same level (not second one below of the first one) withe ods and contents

Reply
Contributor
Posts: 26

Two graphs on the same level (not second one below of the first one) withe ods and contents

Dear all,

I would like to put graphs on the same page and on the same level in ods document that manage also a content.

My program uses 'proc format cntlin='  and diplays graphs in one column on same page. Then I can display several graphs on same page but each one under the previous one. Is it possible with same method to display also graphs on the same level.

Please find my code:

 

SAS code: 


data fmt;
set pt1;
fmtname = "mypic";
start =1;
label = "\\vcarapp010\Rapports\01-ETUDE PIVOT\Graphs\strokeVol1.png";
keep fmtname label start;
run;

/* Create the format containing the links to the images. */
proc format cntlin=fmt;
run;

/* Create a format to blank out values in the column that will contain the image. */
proc format;
value blank other=" ";
run;

ods listing close;

data pt1;
set pt1;
index=1;
run;


ods rtf startpage=no;
ods proclabel ' ';
proc report data=pt1 nowd CONTENTS='Graph 1.6: Time trajectories post-implant for left and right stroke volume, setting of right input pressure and avg. L/R admission P. ratio';
column index image;
define index / group noprint;
break before index/ contents="" page;
define image/ computed style(column)=[postimage=mypic. just=l cellwidth=3.1 in ] format=blank.;

/* Set the computed variable equal to the variable */
/* value that matches the value in the $Mypic. format. */
compute image ;
image = 1;
endcomp;

title2 'Graph 1.6: Time trajectories post-implant for left and right stroke volume, setting of right input pressure and avg. L/R admission P. ratio';
run;

 

 

 

Regards,

SAS Super FREQ
Posts: 8,820

Re: Two graphs on the same level (not second one below of the first one) withe ods and contents

Hi:
You don't say how you are generating the graphs, and from your code, it looks like you are inserting vol1.png into every cell.

But it might be possible to use SGPANEL or ODS LAYOUT, as shown in this paper (see last example for ODS LAYOUT): http://support.sas.com/resources/papers/proceedings16/SAS5762-2016.pdf and this paper shows an older way with a simple PROC REPORT -- the PROC REPORT has been designed to have 2 columns side by side and then there is a different preimage for each column and row:http://www2.sas.com/proceedings/forum2008/173-2008.pdf

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 117 views
  • 0 likes
  • 2 in conversation