Hi,
I want to create a two-panel graph using proc sgpanel in SAS 9.4. The y-axis should be the same for the two panels, but I want both x-axis to have different values . Can that be done using SGPANEL?
Best regards,
Shaifali
Maybe you want this ?
proc sgscatter data=sashelp.class; compare x=(weight height) y=age; run;
Calling @Rick_SAS for proc template.
Maybe you want this ?
proc sgscatter data=sashelp.class; compare x=(weight height) y=age; run;
Calling @Rick_SAS for proc template.
On your PANELBY statement, set UNISCALE=ROW to allow the column axis to be independent. You might also want to set LAYOUT=COLUMNLATTICE to ensure that the panel is always built on one row, regardless of the number of classifiers.
Hope this helps!
Dan
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!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: