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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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!
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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