Thank you for your reply. In terms of #2, I got the solution to work, that is, this syntax worked to remove the text I didn't want in the legend: keylegend/title=" "; I added this values statement for the x axis to print the labels that I wanted, and while it worked (the labels look good now), the graphed lines no longer appear: xaxis values=("Baseline" "After Group Phase" "After Independent Phase" "No Study Activity" "1 Month Follow Up") display=(nolabel) offsetmin=0.05 offsetmax=0.05; I tried adding a values statement with numbers in it but that didn't work. Here is what the output looks like now: I realize you are suggesting I add another values statement with numbers in it, but after a search, I couldn't find an example of what that looked like, so I couldn't figure it out. I'm sorry but I'm new to SAS and I didn't know what you meant by, "From the description of your data I cannot tell what the actual values you have, or may have in the data, actually are. If the values are of Ttbf are actually 1, 2, 3 then add a values statement with those values to your xaxis statement." What do you mean by actual values? What would the code look like? After a search and trying somethings I found, I couldn't get it to work. #4: I believe these are the actual values, so what I'd have to do is what you say here: " If the values shown are the actual values then create a format to display the desired text and use the created format in a Format Statement with the variable and the custom format name assigned." What would that code look like? After a search I couldn't find an example. In case it is helpful, here is what the revised syntax looks like now: proc sgplot data= dataset;
where base_days_sober<90;
title "Negative Affect Among Participants with <90 Days of Recovery by Treatment Group";
vline ttpbf / response=na group=tx_group stat=mean limits=both limitstat=stderr markers;
xaxis values=("Baseline" "After Group Phase" "After Independent Phase" "No Study Activity" "1 Month Follow Up") display=(nolabel) offsetmin=0.05 offsetmax=0.05;
yaxis label="Negative Affect" values=(10 to 50) ;
keylegend/title=" ";
run; Thank you!
... View more