BookmarkSubscribeRSS Feed
ChristosK
Quartz | Level 8

Reviewer's Request:  "Figures. Please delete the title, instead add figure legends."

 

My code:

proc sgplot data =HEERDT.VP_Table2b2  nowall noborder ;
Title "OR (95% CI) across Vasoplegia Severity, units=1 s.d." ;
styleattrs datacontrastcolors=(CX18577A CX30CC6E  ) ;
format Name $Namefmt.;
scatter x=sdOR y=Name / xerrorupper=sdUCL xerrorlower=sdLCL noerrorcaps markerattrs=(symbol=circlefilled size =5 )
group=Severity groupdisplay=cluster clusterwidth=0.6;
yaxis DISCRETEORDER= DATA reverse ;
xaxis display =(noticks  nolabel noline) VALUEATTRS=(Color=Black Family=Arial Size=8 Style=Normal Weight=Normal)type =log logbase =10 ;
yaxis display =(noticks nolabel noline) VALUEATTRS=(Color=Black Family=Arial Size=8 Style=Normal Weight=Normal)
valueshalign=left colorbands=odd colorbandsattrs=(transparency=0.7);
refline 1.0 / axis=x discretethickness=1 lineattrs=(color=cxd0e0f0);
  refline 'preNa' / axis=y discreteoffset=0.5 lineattrs=(color =Black pattern=34 thickness=1); 
  refline 'pRBC' / axis=y discreteoffset=0.5 lineattrs=(color =Black pattern=34 thickness=1);
  refline 'Ind Temp(C)' / axis=y discreteoffset=0.5 lineattrs=(color =Black pattern=dot thickness=1);
yaxistable pdp2_char sdORCI /class =Severity classdisplay =stack position=right location=outside
VALUEATTRS=(Color=Black Family=Arial Size=8  Weight=Normal ) VALUEHALIGN=CENTER VALUEJUSTIFY= CENTER CLASSORDER=reversedata   
COLORGROUP=Severity;
xaxis display=(nolabel) values=(0.4 1.0 1.5 2.0 2.5 5);
run;

I have tried "keylegend" statements and the title disappears but I cant seem to get to right. Wanted to just move the title to the bottom of and outside the figure.

 

I am using SAS studio. In SAS 9.4 desktop the image initially developed on SAS Studio did not come out the same so Im trying to finish this figure in Studio.

Any ideas?

6 REPLIES 6
Rick_SAS
SAS Super FREQ

The title is controlled by the TITLE statement. To get rid of it, put

TITLE;

outside the PROC SGPLOT call and delete the TITLE statement inside the PROC.

 

Since you mention the KEYLEGEND statement, perhaps you are also trying to suppress the legend? You can use the NOAUTOLEGEND option on the PROC SGPLOT statement to suppress the legend. So the new code looks like this:

Title;
proc sgplot data =HEERDT.VP_Table2b2  nowall noborder  NOAUTOLEGEND;
styleattrs ...
...
run;

 

 

If that does not answer your question, perhaps you could attach a picture of the image you are getting and use graph-editing software to circle the feature you want to suppress or move.

ChristosK
Quartz | Level 8
Thank you Rick. It’s great to be back again.
Your explanation was a good reminder, but I am also trying to place the contents of tte title and other annotations beneath the figure. The reviewers and editor wanted no title and just a note beneath the figure stating what it was, with explanations for some of the variables.
DanH_sas
SAS Super FREQ

Can this information be added with a FOOTNOTE statement? By default, this text is added to the bottom of the graph and can be positioned using justification (left, right, center).

ChristosK
Quartz | Level 8

Thank you DanH. It worked.

Did not seen the footnote option. I generally go to this site for the options:

https://documentation.sas.com/?docsetId=grstatproc&docsetTarget=p1t32i8511t1gfn17sw07yxtazad.htm&doc...

 

I kept on trying with keylegend statement and others not knowing anything about footnote. Is there another source that gives us a comprehensive view of all the options?

 

Enclosed is a pdf of the output. 

It would really help if I could have the following term in bold "Supplementary Figure 1:"

DanH_sas
SAS Super FREQ

You should be able to bold that part of the footnote. Can you post the FOOTNOTE statement you're using?

 

As for the documentation, the TITLE and FOOTNOTE statements are global statement not tied directly to the SG procedures, but they are described in the "Overview" section of the SG procedure documentation: https://go.documentation.sas.com/?docsetId=grstatproc&docsetTarget=p0lf2nknrl1w4fn1k6uoewu0c76c.htm&...

 

ChristosK
Quartz | Level 8
footnote box=1   justify= Left   "Supplementary Figure 1: OR (95% CI) for composite estimate of Severe Vasoplegia over 24h (shaded), and at sampled times up to 24 hours";

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1226 views
  • 0 likes
  • 3 in conversation