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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 372 views
  • 2 likes
  • 3 in conversation