Recently I received an update request for the figure I have done before, but the update is so specific that I couldn't find any appropriate solution for it. So I decided to ask here. Below is the figure which needs to be updated.
Here is the update requested.
“During the review of the response, It was noted that for these figures the EOT boxes should not be connected with the others”. (The part highlighted above).
I think I found the responsible part in the macro (%mf_boxplot) which is created connecting lines. (I am calling the macro in the actual program).
Below is the macro calling with input parameters.
%mf_boxplot(data = datin, /*lab dataset to plot*/
rsl = aval, /*lab results variable to plot*/
grpvar = avisitn, /*group by variable*/
grpfmt = avisit., /*group by variable format*/
symvar = trt, /*treatment variable*/
symfmt = $trt., /*treatment variable format*/
symlab = Treatment, /*treatment label*/
connect= median, /*point to connect between boxplots*/
hlabel = Visit,
vlabel = %BQUOTE(&test),
ymax = &ymax,
t = t, /*Draws tops and bottoms on the whiskers*/
bwidth = 1 /*Width of boxplots*/
So the actual problem is to remove the connecting line between last visit and EOT.
Could anyone please give some idea on this. Any response will be helpful.
Where the EOT value is a different variable than the current &connect. You may need to modify the Plot statement similarly using different symbol references. I haven't done a box plot in GPLOT for likely 8 years and nuances get lost.
I have to guess that your macro variables in the Plot statement are single variable references. If they are something else.
I would also be likely to move this from GPLOT to SGPLOT as there are lots more options there and a SAS/Graph license is not longer needed.
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.