BookmarkSubscribeRSS Feed
vandhan
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.

 

1 REPLY 1
ballardw
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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 561 views
  • 0 likes
  • 2 in conversation