Hi,
I am using the below code for creating the graph, however, it's not producing the correct axis's.
proc sgpanel data=plot3;
panelby trtan / onepanel columns=3 rows=3 novarname spacing=1;
styleattrs
datacontrastcolors=(red blue black)
datalinepatterns=(1)
datasymbols=(circlefilled trianglefilled triangledownfilled);
scatter x=atptn y=mean / yerrorlower=lower yerrorupper=upper
group=paramn groupdisplay=cluster ;
series x=newatptn y=mean / group=paramn groupdisplay=cluster;
rowaxis fitpolicy=thin grid valuesformat=best2.0 values=(40 to 150 by 5) grid ;
colaxis fitpolicy=thin grid values=(10 to 18 by 1) ;
Thanks
FITPOLICY=THIN tells SAS the rules you want to use in not displaying all of the X or Y axis values because of the number of values or the lengths displayed will not fit into the default space allocated. Removing it may show more values.
You may also need to add TYPE=DISCRETE to force the axis to have properties of a discrete axis to show all of the values.
You might also need to consider use of VALUESROTATE option or increasing the size of the graph display area if the there is text collision due to length of the values.
I have moved this to "Graphics Programming" board.
Are you complaining about the double asterisk on the Y-axes?
Thanks,
Koen
FITPOLICY=THIN tells SAS the rules you want to use in not displaying all of the X or Y axis values because of the number of values or the lengths displayed will not fit into the default space allocated. Removing it may show more values.
You may also need to add TYPE=DISCRETE to force the axis to have properties of a discrete axis to show all of the values.
You might also need to consider use of VALUESROTATE option or increasing the size of the graph display area if the there is text collision due to length of the values.
Hi,
Many thanks, it does work.
Would you please let me know how to change the jitter width?
Thanks for your reply.
When I use the suggested code in SGPANEL, it's producing the below, however, I would like to move the whole line a bit closer.
Actually, it worked by setting the clusterwidth in both scatter and series line.
Thank you all for your input.
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!
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.