## SGPLOT - squarefilled

Solved
Occasional Contributor
Posts: 15

# SGPLOT - squarefilled

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?

Accepted Solutions
Solution
‎09-08-2016 10:47 PM
SAS Super FREQ
Posts: 1,042

## Re: SGPLOT - squarefilled

[ Edited ]

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;``````

All Replies
Solution
‎09-08-2016 10:47 PM
SAS Super FREQ
Posts: 1,042

## Re: SGPLOT - squarefilled

[ Edited ]

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;``````
☑ This topic is solved.