Is there a way to change the line patters and colors of the output of ROC curves derived from pro logistic?
I get this picture, but I would like to change to gray scale and more distinct line patterns.
I used a template, and I've been able to change the line thickness and the fonts, but I can't seem to change the color of the lines or the line patterns.
Any ideas?
Thanks
What version of SAS are you running?
%put &=SYSVLONG4;
SAS Enterprise Guide 7.1
Thanks, but that is not the information we need. Please submit the statement
%put &=SYSVLONG4;
and send the value that is displayed in the log. It will look something like this:
7529 %put &=SYSVLONG4;
SYSVLONG4=9.04.01M6P11072018
It would be great to see the code you are using to generate the ROC curve. In general, you have three options:
1. Use an ODS style. For grayscale and line patterns, use the JOURNAL style:
ods HTML style=Journal;
proc logistic data=Sashelp.Class;
model Sex = height weight age;
roc height;
roc weight;
roc age;
run;
2. Use one of the techniques in the SAS/STAT documentation chapter "Statistical Graphics Using ODS."
The %MODSTYLE macro is often effective.
3. As KSharp suggested, write the data to a SAS data set and use PROC SGPLOT and use the features in that procedure to control the attributes of the curve. If the data is in "long form," use the STYLEATTRS statement. If you use multiple SERIES statement, use the LINEATTRS= option.
Thanks.Using proc sgplot and customizing the output is working.
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.