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-2024.png

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.

 

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