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;
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.
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.