BookmarkSubscribeRSS Feed
Mahee
Calcite | Level 5

In attached Forest plot, I need to draw an Arrow for the Diabetes "Yes" record since it reaches the value 2. I'm using template to draw this forest plot. Could you please guide me with the options.

 

This is the template which is used to draw that HR & CI part.

 

layout overlay/ walldisplay=none xaxisopts=(display=none
linearopts=(viewmin=0 viewmax=25) offsetmin=0);
%let refbandattrs=lineattrs=(thickness=7 color=_bandcolor);
referenceline y=ref/ &refbandattrs;
highlowplot y=obsid low=zero high=zero/highlabel=heading lineattrs=(thickness=0)
labelattrs=(size=7 weight=bold) ;
highlowplot y=obsid low=zero high=one /highlabel=col8 lineattrs=(thickness=0)
labelattrs=(size=7);
endlayout;

2 REPLIES 2
Rick_SAS
SAS Super FREQ

It looks like the graph was copied from Warren's article.

 

See Sanjay's article on the Swimmer Plot. for one approach, which uses annotation. I prefer to avoid annotation when I can, so I suggest that you create one or more separate columns that identify which rows of the high-low plot should get an arrow, then draw those lines separately.

Mahee
Calcite | Level 5

Thanks for the reply!!!

 

Yes for reference I copied that graph from that article.

 

I'll check the article you have shared

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 692 views
  • 0 likes
  • 2 in conversation