Please look at your own code. In terms of changing your graph the only details that matter are what data you have just before the graph call.
After the reshape long you have a string variable which with distinct values
and the reason your graph doesn't have panels in the order you desire is that the by() option of graph is sorting alphabetically. So, you need a different variable. Something like
with other options as before.
Clearly I can't test anything here as I don't have access to your F: drive and you don't give a data example. I have guessed that the underscore is too ugly to be attractive in a graph and you might wish to make other changes.
Hope that helps.
After the reshape long you have a string variable which with distinct values
Code:
LEV Short_LEV Long_LEV
Code:
clonevar WHICH = which replace WHICH = subinstr(WHICH, "_", " ", .) lahel def WHICH 1 LEV 2 "Short LEV" 3 "Long LEV" encode WHICH, gen(wanted) tabplot yesno sign, by(wanted, compact row(1) note(""))
Clearly I can't test anything here as I don't have access to your F: drive and you don't give a data example. I have guessed that the underscore is too ugly to be attractive in a graph and you might wish to make other changes.
Hope that helps.
Comment