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

Hi all,

I want to make a graph as attach file. 
I do coding as below ......

 

 

data one;
input group x y;
cards;
1 11 21
1 15 26
1 18 32
2 13 31
2 16 38
2 19 40
;

symbol1 value=square color=black interpol=join;

proc gplot data=one;
plot x*y / vref= 11 50
vaxis=(10 to 60 by 2) ;
run;

 


      the point is when i change from 'square' to 'squarefilled' , the display result is triangle.

 

     Would you please suggest me what am i doing wrong?

 

 

 


ScreenHunter_81 Sep. 08 23.01.jpg
1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Your code is using GPLOT instead of SGPLOT. The SGPLOT equivalent for your program would be the following:

proc sgplot data=one;
series x=x y=y / markers markerattrs=(color=black symbol=squarefilled) lineattrs=(color=black); 
refline 11 50;
yaxis values=(10 to 60 by 2) ;
run;

View solution in original post

1 REPLY 1
DanH_sas
SAS Super FREQ

Your code is using GPLOT instead of SGPLOT. The SGPLOT equivalent for your program would be the following:

proc sgplot data=one;
series x=x y=y / markers markerattrs=(color=black symbol=squarefilled) lineattrs=(color=black); 
refline 11 50;
yaxis values=(10 to 60 by 2) ;
run;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 1027 views
  • 0 likes
  • 2 in conversation