BookmarkSubscribeRSS Feed
SanjayAhir
Obsidian | Level 7

How to reduce font size of value under column Patients and BOR. please find attached screen shot.

 

Swimmer plot.png


proc template;
define statgraph swim_plot;
dynamic _title1 _title2 _footnotel _footnoter _disp;
begingraph/ designwidth=500px designheight=450px;

layout lattice/columns=3 columngutter=2 columnweights=(.12 .10 .70);

column2headers;
entry halign=center " Patient"/textattrs=(size=6pt weight=bold);
entry halign=center " BOR"/textattrs=(size=6pt weight=bold);
endcolumn2headers;

/*Patient*/
layout overlay/walldisplay=none border=false
yaxisopts=(display=none reverse=true type=discrete)
xaxisopts=(display=none offsetmin=0.3 offsetmax=0);
scatterplot y=SUBJID x=constant/markercharacter=subjid markerattrs=(size=0);
endlayout;

/*BOR*/
layout overlay/walldisplay=none border=false
yaxisopts=(display=none reverse=true type=discrete)
xaxisopts=(display=none offsetmin=0.3 offsetmax=0);
scatterplot y=subjid x=constant/markercharacter=bor markerattrs=(size=0);
endlayout;

/*Swimmer Plot*/
layout overlay/
yaxisopts=(reverse=true display=none tickvalueattrs=(weight=bold))
xaxisopts=(griddisplay=off labelattrs=(size=5pt weight=bold) label="Treatment Duration (Days)"
tickvalueattrs=(size=5pt)
linearopts=(viewmin=0 viewmax=200 tickvaluesequence = (start=0 end=200 increment=20)));
barchart x=subjid y=ady/name="ARM" barwidth=0.6 orient=horizontal group=trtp grouporder=ascending
outlineattrs=(color=black);
scatterplot x=rsdy y=subjid / group=avalc name="s" markerattrs=( size=5) includemissinggroup=false;
discretelegend "ARM" / valueattrs=(size=5);
discretelegend "s" / location=inside valign=bottom halign=right across=1 valueattrs=(size=4);
endlayout;
endlayout;
endgraph;
end;
run;

3 REPLIES 3
Cynthia_sas
SAS Super FREQ
You might want to check in the documentation for the BARCHART statement. I believe there is a BARLABELATTRS option that allows you to adjust the bar labels.

Cynthia
SanjayAhir
Obsidian | Level 7

I able to change label font size with other option but I am not able to change font size of BOR value like PR SD CR and Patients value.

Cynthia_sas
SAS Super FREQ
There is a forum devoted to Graphics questions, here https://communities.sas.com/t5/Graphics-Programming/bd-p/sas_graph

You might have more feedback if you posted in that location.

Cynthia

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 472 views
  • 0 likes
  • 2 in conversation