BookmarkSubscribeRSS Feed
smorkoc
Fluorite | Level 6

hi,

how can I change the color of box plots that I get after running proc univariate procedure?

here is my code;

 

ods graphics on;
proc univariate plot normal data=mydata.butner_new1;
by spacing;
var t5 t10 moisture log_flux1 log_flux2 ratio;
run;
ods graphics off;

3 REPLIES 3
Reeza
Super User

You can change the STYLE, which is the easiest method. 

 

If you want more control try using PROC SGPLOT with VBOX or HBOX. Then you can customize a lot more, but more code of course. 

 


@smorkoc wrote:

hi,

how can I change the color of box plots that I get after running proc univariate procedure?

here is my code;

 

ods graphics on;
proc univariate plot normal data=mydata.butner_new1;
by spacing;
var t5 t10 moisture log_flux1 log_flux2 ratio;
run;
ods graphics off;


 

Reeza
Super User
I didn't actually show you how to change style.

ODS <destination> style=seaside;

Eg.

ODS HTML file = '/folders/myfolders/demo.html' style=meadow;

ballardw
Super User

After they are created? If you have the SAS ODS Graphics Editor installed, start it. Then navigate to the location the graphic image was saved using the File menu selection box, select the image. (The name of the file should be in the log).

Depending on the type of edit you want you can edit and insert stuff. Read the documentation.

 

Or modify the code to use the colors you want as @Reeza suggests and recreate the graph. That may be faster in the long run.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 650 views
  • 0 likes
  • 3 in conversation