Does anyone know how to specify the width and height of the graph that is generated from a proc sgplot and sgpanel? I have a simple barchart where i use sgplot and a grouped barchart where I use sgpanel.
You can set the size on the ODS GRAPHICS statement. The options are WIDTH and HEIGHT. If you set only one of those values, the aspect of the graph is maintained, but you can set both values if there is a specified aspect you want. Be sure to put the unit after the number your set, e.g. 100px, 2in, 5cm, etc.
Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.
Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer.