BookmarkSubscribeRSS Feed
CecilieAalling
Calcite | Level 5

Hi there, 

 

I'm struggeling to costumize my box plot. I would like the tick mark values "ADHD only" and "ADHD and.." to be bold - not the rest. I would also like the tick mark value "ADHD and.." to be left justify (like a title) and to remove the actual tick for this value. 

 

So far I have the code: 

 

proc template;

    define statgraph confidence_V;

        begingraph;

            entrytitle 'Interaction analysis for ADHD and comorbid psychiatric disorders';

discreteattrmap name='colors' / ignorecase=true;

                 value "2" /;

                 value "1" / fillattrs=(color=VIYPK) lineattrs=(color=black);

                 value "0" / fillattrs=(color=LIGRBR) lineattrs=(color=black);

enddiscreteattrmap;

discreteattrvar attrvar=unitcolor var=colour attrmap='colors';

layout overlay / yaxisopts=(offsetmin=0 labelposition=top griddisplay=off label=' ' reverse=true) xaxisopts=(griddisplay=on label='IRR');

barchartparm x=ICD y=rate_ratio /

                       errorupper=up_ci

                       errorlower=low_ci

                       group=unitcolor

                       groupdisplay=cluster

                       orient=horizontal

;

            endlayout;

        endgraph;

   end;

run;

 

proc sgrender data=figur8 template=confidence_V;

format=ICD diag.;

run;

 

 

And I get the attached result. 

 

I am using version 9.4 TS1M2.

 

Thank you for any clue!

 

Cheers,

Cecilie

1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You can overly graphs one on top of the other, so my first thought was why not, overly a second graph which only has the two points in question, but with tick marks bolded, and set the size of marks to 0, i.e. so only the axis shows and overlays what you have, with the two ticks bolded.

 

Another idea to is plot a 2 point graph over the top with the marks labelled as what you want bolded, rather than setting them on the axis.

 

http://documentation.sas.com/?docsetId=grstatug&docsetTarget=p1pqfzgbuzbpkzn1mrbzhgggvhkz.htm&docset...

 

You can find a lot of information here:

https://blogs.sas.com/content/graphicallyspeaking/

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 608 views
  • 1 like
  • 2 in conversation