BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Leo9
Quartz | Level 8

 

I am creating a graph where I want to display only specific ticks. For some reason, the plot is not displaying all the values which I am providing. Below is the code. In the case, I am passing tickvalues as a macro parameter. The values for ticks which I am passing 

are : 3, 3.18, 3.48, 4, 6,8,10,12

 

How can I display all the ticks on y-axis ?


proc sgplot data = lbs ;
format lbstresn tcfmt. ;
series x = weeks y = lbstresn / group = subjid groupms=subjid markers markerattrs=(size =4);
yaxis label = &lbl values =(&ticks) display = all/* min = &valu5*/ ;
xaxis values= (0 to 24 by 1 ) label = "Weeks" display = all ;
refline &valu4/ label = "LOQ = &valu3 " labelattrs = (size = 6) labelloc=inside;
keylegend / valueattrs = (size=6) title = 'Subjects' ;
run;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

What does your graph output look like?  Some tick values may be dropped due to collision.  Try using FITPOLICY=none to see all values.

Providing full code with data helps to see what is going on, and the version of SAS you are using.

View solution in original post

1 REPLY 1
Jay54
Meteorite | Level 14

What does your graph output look like?  Some tick values may be dropped due to collision.  Try using FITPOLICY=none to see all values.

Providing full code with data helps to see what is going on, and the version of SAS you are using.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

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
  • 1704 views
  • 0 likes
  • 2 in conversation