BookmarkSubscribeRSS Feed
dhhunter
Calcite | Level 5
symbol1 interpol=rcclm95 value=circle cv=red ci=pink co=blue;
symbol2 interpol=rcclm95 value=square cv=green ci=yellow co=orange;

proc gplot data=sashelp.class;
plot height*weight=1 / regeqn;
plot2 age*weight=2 / regeqn;
run;


Why are the equations not displayed in Guide 4.2 but show up fine in Base SAS?
5 REPLIES 5
Cynthia_sas
SAS Super FREQ
Hi:
It is possible that the REGEQN option is not supported in the device that's used in the creation of EG output. When you go to the Tools--> Options menu, look for the Results Option in the navigation pane and click on the Graph results option. if the Graph results option for Graph Format is set to "ActiveX" or "ActiveX image", then try changing the value to GIF or JPEG and see whether you get the REGEQN to appear.

The path may be slightly different to change Graph options in 9.2. The bottom line is that if you search in support.sas.com using the search string:
REGEQN ActiveX

you will see a hit on a documentation topic entitled "Summary of ActiveX and Java Support for PROC GPLOT". You will see that REGEQN is not always supported using these drivers (which is the EG default for graph creation). This is a good topic to consult when you are using SAS/GRAPH and EG because some options that work with graphic types like PNG, GIF or JPEG do not always work with ActiveX and/or Java.

cynthia
ChrisHemedinger
Community Manager
Cynthia has it right. A simple workaround would be to add this to the top of your code:

options device=PNG;

Chris
SAS Innovate 2025: Call for Content! Submit your proposals before Sept 25. Accepted presenters get amazing perks to attend the conference!
Cynthia_sas
SAS Super FREQ
Thanks, Chris. And I think you meant to type
goptions device=PNG;

cynthia
ChrisHemedinger
Community Manager
Actually, the DEVICE option works as GOPTION or OPTION. Try it!
SAS Innovate 2025: Call for Content! Submit your proposals before Sept 25. Accepted presenters get amazing perks to attend the conference!
Cynthia_sas
SAS Super FREQ
That is totally cool! I'd always used GOPTIONS method, but indeed, DEVICE= would work in either statement, OPTIONS or GOPTIONS.

cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1004 views
  • 0 likes
  • 3 in conversation