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
Diamond | Level 26
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 For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Cynthia_sas
Diamond | Level 26
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 For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Cynthia_sas
Diamond | Level 26
That is totally cool! I'd always used GOPTIONS method, but indeed, DEVICE= would work in either statement, OPTIONS or GOPTIONS.

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1546 views
  • 0 likes
  • 3 in conversation