How to reduce font size of value under column Patients and BOR. please find attached screen shot.
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;
Hi,
If not solution not found, please use below.
Use Markercharattrs=(size=8) in the scatterplot statement
Thanks,
Durga
@DR_Majeti is correct, but also consider replacing your MARKERCHAR-based SCATTERPLOTs with AXISTABLEs, if your version of SAS supports it.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.