Suppose I have a data set with class variable with 4 levels: A, B, C and D. If I want to creater four series plots in SAS Studio I can run the following code using proc sgpanel
.
proc sgpanel data = name;
panelby class;
series X = var1 Y = var2 / group = some_factor;
run;
How can modify this code to instead create 2 panels where the first panel has the graphs of both A and B and the second C and D? A naive solution would be to add a "dummy" 0-1 variable to the data set and using panelby dummy
. However I was hoping for a more elegant solution!
Edit: To clarify I want to have different graphs for A and B in the same panel, not combine data into one graph.