Hi @Rick_SAS @Quentin thanks for the reply.
In addition, I realized that I need to also overlay the box plot with a scatter plot of Serostatus(which comprises of seropositive and seronegative), I added it but it did not come out in the graph.
Also the rowaxis is 0.1, 0.3 and 1.0, despite the apparent gap between 0.1, 0.3 and 1.0, in the plot the space in the rows remains the same in the earlier picture which does not seem logical, I tried to use list of string values, value=("0.1" "0.3" "1.0"), it simply ordered it based on the data(I'm assuming it did this by default).
I'm also unable to increase the width/size of the graph, which I think is the reason the column(x) axis are slanted.
How can I control the color of each box?
lastly the panelby and boxed, how can I remove the box.
Below is the code I currently have.
I ask too many questions, please bear with me.
PROC SORT DATA=simulated OUT=simu1; BY Visit Day ID Strain Agegrp serostatus; RUN;
/*Changing the structure of the dataset from wide to long such that the cytokine's are represented as a single variable as well their corresponding values are in another column*/ PROC TRANSPOSE DATA=simu1 OUT=simu2(rename=(col1=med_iqr _name_=cytokine)); BY Visit Day ID Strain Agegrp serostatus; VAR IFNg TNFa IL_2 CD107a; RUN;
title; footnote; proc sgpanel data=simu2; /* Use the SORT= option to order the panels */ panelby strain agegrp / rows=2 columns=4 layout=lattice COLHEADERPOS=bottom sort=ascending uniscale=column novarname START=BOTTOMLEFT NOBORDER;
scatter x=serostatus y=med_iqr / jitter filledoutlinedmarkers markerattrs=(symbol=circlenotfilled size=11) markerfillattrs=(color=cxfdae6b) markeroutlineattrs=(color=black) transparency=0.5; vbox med_iqr / category=visit group=cytokine fill BOXWIDTH=0.8 lineattrs=(color=black thickness=2) whiskerattrs=(color=black thickness =2) medianattrs=(color=black thickness=2); rowaxis values=(0.1,0.3,1.0)grid display=(nolabel); colaxis values=("Baseline" "Day 64" "Day 120" "Day 360")display=(nolabel); run;
... View more