Data visualization with SAS programming

default style in SGplot procedure

Reply
Frequent Contributor
Posts: 88

default style in SGplot procedure

I want to use %modstyle to modify a style then use proc sgplot to prepare plots. How can I know which default style the sgplot uses for a special plot?

 

In addition, does someone can recomment me a study document for %modstyle? 

Thanks

 

Super User
Posts: 11,114

Re: default style in SGplot procedure

The style used is the style in effect at the time from either your SAS system settings or ODS destination statement(s).

 

I am not sure what you mean by "special plot". Unless you provide style overrides in options for requested plots then the current style is used.

 

Depending on what you are attempting you may also want to look at DATTRMAP dataset to set options for the values of group varaibles

 

 

Super User
Posts: 19,058

Re: default style in SGplot procedure

What version of SAS do you have? SAS 9.4 has made some of these modifications super easy, within SGPLOT.

SAS Super FREQ
Posts: 196

Re: default style in SGplot procedure

Modstyle is documented in one of the introductory sas/stat chapters. Now days, many of the things it was intended to do can be better accomplished with attribute priority and styleatters.
Frequent Contributor
Posts: 88

Re: default style in SGplot procedure

I am using 9.4. 

"special plot", I mean using vbar or scatter or series statements under sgplot to prepare different figures. How can I know the default styles for different statements? The default style is only one?

 

 

 

SAS Super FREQ
Posts: 196

Re: default style in SGplot procedure

There  are default styles for different destinations not statements.  html: htmlblue, rtf: rtf, printer and pdf: pearl.

You can specify the style on and ODS destination statement.  I don't know if there is any way to query SAS.  Seems unlikely.

 

http://pubshelpcenter.unx.sas.com:8080/production/?docsetId=statug&docsetVersion=14.2&docsetTarget=s...

Frequent Contributor
Posts: 88

Re: default style in SGplot procedure

Thanks

 

 

Ask a Question
Discussion stats
  • 6 replies
  • 226 views
  • 1 like
  • 4 in conversation