Hi I am trying to plot the data but the error gives me like below. Can someone please show me what is wrong with my code?
DATA Chapt17; SET Chapt17.earth; lfreq = log(freq + 1); RUN; PROC PRINT DATA = chapt17; RUN; * Plotting the data; SYMBOL1 VALUE="S" COLOR=BLACK; SYMBOL2 VALUE="W" COLOR=BLACK; * Plot data Page 7; PROC GPLOT DATA=Chapt17; PLOT freq*Magnitude=Locn; RUN; 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 72 73 PROC GPLOT DATA=Chapt17; ERROR: Procedure GPLOT not found. 74 PLOT freq*Magnitude=Locn; 75 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE GPLOT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 76 77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 89
May be you need to try the new version of the graphic procedures. The older versions are available in your SAS version.
try the proc sgplot if you are trying the line plot
proc sgplot data=chapt17; series x=magnitude y=freq / grou=locn; run;
View solution in original post
Thanks Jagadishktatam. I want to have scatter plot instead of line, Do you have any solution?
Hi:
SGPLOT has a SCATTER statement. There are numerous examples in the documentation. For example, here: https://go.documentation.sas.com/?docsetId=grstatproc&docsetTarget=p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm&... the documentation has 4 examples.
Cynthia
Thanks Cynthia for your help. I already managed to solve the problem.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Register now!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.