Hi all,
I would like to use fill patterns instead of fill colors from the ODS graphics designer app, but I could not do it. I complete the analysis with SAS and then I use the ODS graphics designer app to plot my graphs and edit the graph styles. I googled, but I could not figure out how to use fill patterns like Journal2 style within ODS Graphics Designer. I would appreciate any help on this topic.
When you use the ODS Graphics Designer, you can see the GTL for the current graph by selecting View->Code. You can cut and paste this code in a SAS editor and run the program to create the template. You can create the graph using PROC SGRENDER. At the time the graph is RENDERED, it checks the current style and applies the style to the template.
In short, set the style then call SGRENDER on the template:
ods html style=Journal;
proc sgrender data=Have template=MyTmplate;
run;
ods html close;
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.