BookmarkSubscribeRSS Feed
rakul
Fluorite | Level 6

1. It is all circles but for specific points i want to change to triangles instead of circle. Please find below output graph.

2. Also just before the double headed arrow i want to mention dot count which i have in annotated dataset.

Please tell me which options i need to use in annotated dataset.

ods html path  = "C:\Users\xxx\Desktop\test"
gpath = "C:\Users\xxx\Desktop\test" 
file  = "Test.html";
ods graphics on / imagefmt = gif; 
ods graphics on / width=1800px height=1100px;
ods graphics on / reset=index imagename = "Kebab"; 

data temp;
	a=0;b=10; output;
	a=10;b=0; output;
run;

proc sgplot data=temp sganno=anno noborder;
	scatter x=a y=b  ; 
	refline 1/ axis= x;
	title "Performance drivers";  
xaxis min=50 max=100 display=all offsetmin=0.3 offsetmax=0.05 
		  type=linear  values=(50 to 100 by 5);
	yaxis min=1 max=8 display=none offsetmin=0.05 offsetmax=0.05;
	
run;

 

output.png

 

5 REPLIES 5
PaigeMiller
Diamond | Level 26
scatter x=a y=b / markerattrs=(symbol=triangle) ; 
--
Paige Miller
rakul
Fluorite | Level 6

Thank for this. I will try.

 

Also can you tell me how to update dot count before arrow.

PaigeMiller
Diamond | Level 26

@rakul wrote:

 

Also can you tell me how to update dot count before arrow.


I don't know what this means.

--
Paige Miller
ballardw
Super User

@rakul wrote:

Thank for this. I will try.

 

Also can you tell me how to update dot count before arrow.


Since the data and code you show do not come anywhere near to producing a graph like you show then you need to provide example data in the form of a data step.

 

 

Reeza
Super User
Because you want to do it conditionally I would suggest using a data attribute map and controlling your symbols from that data set.
See examples and instructions here:
https://documentation.sas.com/?docsetId=grstatproc&docsetTarget=n18szqcwir8q2nn10od9hhdh2ksj.htm&doc...

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 5 replies
  • 1791 views
  • 0 likes
  • 4 in conversation