DATA Step, Macro, Functions and more

How use proc gplot

Reply
Contributor
Posts: 31

How use proc gplot

I want to use proc gplot for following code:
PROC plot data = covprob;
plot cv_hat*n = '^';
plot cv_curl*n = '~';
run;
quit;

So, instead "plot" I have to use "gplot "....please I need code
Super User
Posts: 17,819

Re: How use proc gplot

[ Edited ]

What about SGPLOT? Use a scatter statement with Markerattrs to specify the symbol.

proc sgplot data=sashelp.class;
scatter x=weight y=height/markerattrs=(symbol=asterisk);
run; quit;
Contributor
Posts: 31

Re: How use proc gplot

Could you give me a code, pls.Didn't find how use "tilda" sign
Super User
Posts: 17,819

Re: How use proc gplot

Correct your spelling - it's tilde not tilda.

 

If your code doesn't work post what you've tried.

 

http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p0i3rles1y5mvsn...

Super User
Posts: 10,497

Re: How use proc gplot

Do you want to overlay to plots in the same graph or generate a separate graph for each plot statement?

Contributor
Posts: 31

Re: How use proc gplot

Yes....I need overlay option.
Super User
Posts: 17,819

Re: How use proc gplot

Add a second scatter statement to proc with relevant variables referenced.
Ask a Question
Discussion stats
  • 6 replies
  • 276 views
  • 0 likes
  • 3 in conversation