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
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
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!
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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