BookmarkSubscribeRSS Feed
Fluorite | Level 6

I am using proc template to produce line plot and showing Y axis values on Log scale.


two issues i have.


1. Can I add manual Values to log scale? Scale starting from 0. I want -1 and -2 on it and want to put different label for it.

2. I want to change grouped data (usually Treatment but in my case it is Patient IDs). I want to put for few subject one color and for few subjects other color. I have flag which divides subjects into 2 groups. hence I want only 2 colors.


Please help.


attached the code in the PDF file.


Super User

1) Please post code in a code box opened using the forum's {I} or "running man" icons. It is much easier to post that way than to create a separate document and add attach. Just copy from the SAS editor, click on the icon and paste.

2) You do not show the complete proc template code

3) Better is to provide a small example data set as data step code, the entire template code and the Sgender code using the template and the example data.


By "add manual values" do you mean tick marks on the axis?


If you want to have selected values appear as group then look at the options LINECOLORGROUP and LINEPATTERNGROUP for the Seriesplot statement. That allows a separate variable such as your "flag" to set colors or patterns for lines independent of the Group= variable.



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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 2 in conversation