BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
abhinayingole
Obsidian | Level 7

 

Hi..

 

I am using proc template to produce forest plot. but default color for horizontal line is blue.

I needed black.

could anyone please help.

 

below is the piece of code for the same. 

 

 

abhinayingole_0-1643883037594.png

 

 

	/*--Fourth column showing odds ratio graph--*/
	layout overlay /   xaxisopts=(label=" "
	                            LABELPOSITION=CENTER labelattrs=(size=7) tickvalueattrs=(size=7) 
                         linearopts=( tickvaluepriority=true tickvaluelist=(0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0)))
               yaxisopts=(reverse=true display=none) walldisplay=none;
		  referenceline y=ref1 / lineattrs=(thickness=15 color=_bandcolor);
	  highlowplot y=obsid low=lower high=upper; 
          scatterplot y=obsid x=hr /   markerattrs=(size=7 color=black symbol=squarefilled);
		  referenceline x=1;
		  

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
Sorry. It should be :

highlowplot y=obsid low=lower high=upper / lineattrs=(color=black) ;

View solution in original post

3 REPLIES 3
Ksharp
Super User
I am not sure.

highlowplot y=obsid low=lower high=upper;
scatterplot y=obsid x=hr / lineattrs=(color=black) ;
abhinayingole
Obsidian | Level 7

Thanks.

but this is not working

Ksharp
Super User
Sorry. It should be :

highlowplot y=obsid low=lower high=upper / lineattrs=(color=black) ;

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

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1389 views
  • 0 likes
  • 2 in conversation