I wrote the following code and got an error "invalid varlist":
scatter capstateratio6 year, by(prov) yaxis(1) || scatter cappriratio6 year, by(prov) yaxis(1) ///
|| scatter capforratio6 year, by(prov) yaxis(1) || scatter expphypc year, by(prov) yaxis(2) ///
|| scatter explaw4pc year, by(prov) yaxis(2) || scatter expssepc year, by(prov) yaxis(2), ///
xlabel(1999(2)2006, angle(45)) ///
ytitle(1)("S/N/F capital ratio (%)") ytitle(2)("fiscal spending on P/I/L public goods (%)")
legend(order(1 "S(%)" 2 "N (%)" 3 "F (%)" 4 "P" 5 "I") 6 "L"))
Many thanks!
Linghui
Related Posts with How to graph one figure with several variables using the left yaxis and several other variables using the right yaxis (xaxis is year)?
example for merge m:mDear All, It is advised in the forum that, when possible possible, do not use Code: merge m:m ... …
invalid error using nwcommandsHi everyone! I want to use the nwcommands to do some social network analysis and encountered a prob…
Creating variable to capture before/after effect using panel dataHi everyone, I have a panel dataset where I follow individuals for 12 waves (new_waves). What I am …
Multilevel Model with ESS Data (Survey Data) doesn't convergeTo whom it may concern, I try to calculate a multilevel model for the effect of migration integrati…
Spatial matrix user definesDear All, I would like to generate a spatial matrix defined by myself. I have the following data: …
Subscribe to:
Post Comments (Atom)
0 Response to How to graph one figure with several variables using the left yaxis and several other variables using the right yaxis (xaxis is year)?
Post a Comment