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;

2 REPLIES 2
DR_Majeti
Quartz | Level 8

Hi, 

 

If not solution not found, please use below. 

 

Use Markercharattrs=(size=8) in the scatterplot statement

 

Thanks,

Durga

DanH_sas
SAS Super FREQ

@DR_Majeti is correct, but also consider replacing your MARKERCHAR-based SCATTERPLOTs with AXISTABLEs, if your version of SAS supports it.

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