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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1291 views
  • 0 likes
  • 2 in conversation