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

I need your helps. 

 

  1. for X axis i want pu max+100 and min-100 ranges, coz data changes every time and need to give automatically ranges.
  2. one line solid and second line shortdash (groupdisplay=cluster clusterwidth=0.5 lineattrs=(pattern=shortdash);
  3. need to drop labels for point and keep only for dashs. 

 

 

Photo attached Thanks a lot

 

 

proc sgplot data=final sganno=final pad=(bottom=14%);
	format dose dose. tmt box.;
	scatter x=dose y=mean / yerrorupper=UCLM yerrorlower=LCLM group=tmt
		groupdisplay=cluster clusterwidth=1
		markerattrs=(size=1 symbol=none);
	series x=dose y=mean / group=tmt groupdisplay=cluster
		clusterwidth=0.5 lineattrs=(pattern=shortdash);
	refline 26 / axis=x;
	refline 0 / axis=y lineattrs=(pattern=shortdash);
	xaxis type=linear values=(0 1 2 4 8 12 16 20 24 28) max=29
		valueshint display=(nolabel);
	yaxis label="Plasma &var2 Concentration (ng/mL)" values=(-100 to 1300 by 50);
	xaxis label="Time" values =(0 to 20 by 1);
	keylegend/ location=inside position=topright;
run;

 

Capture.PNG

Thanks,
Vahe
1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Look through this blog:

https://blogs.sas.com/content/graphicallyspeaking/

 

There are thousands of examples for all types of graphs and all options.  As you have not provided any code its pretty hard to answer.  The labels is simple (assuming your using proc sgplot/gtl, just label the point plot one name and don't use it in the legend statement).  The other two, range, get max from data, add 100, then block it up as you need the axis, and pass that as a dynamic variable.  The other about lines sound to me like your style needs updating.  

All these can be found as examples in the website given.

View solution in original post

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Look through this blog:

https://blogs.sas.com/content/graphicallyspeaking/

 

There are thousands of examples for all types of graphs and all options.  As you have not provided any code its pretty hard to answer.  The labels is simple (assuming your using proc sgplot/gtl, just label the point plot one name and don't use it in the legend statement).  The other two, range, get max from data, add 100, then block it up as you need the axis, and pass that as a dynamic variable.  The other about lines sound to me like your style needs updating.  

All these can be found as examples in the website given.

Vahe_Mar
Obsidian | Level 7
I have added
Thanks,
Vahe

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 957 views
  • 1 like
  • 2 in conversation