I have some problems creatin a graph with scalar variables, here is my code:
set scheme cleanplots, perm
egen maxmonto=max(monto)
egen maxtea=max(tea)
su maxmonto
scalar maxmonto2=r(max)
disp maxmonto2
twoway (scatter tea monto, mlcolor(blue) mlwidth(medthick) yscale(r(0 20 50 83.4)) ylabel(0 20 50 83.4) xscale(r(0 1000 2000 maxmonto2)) xlabel(0 1000 2000 maxmonto2) title("Pequeñas empresas MN") ytitle("TEA-%") xtitle("Monto del crédito-S/ Miles"))
Thanks in advance
Related Posts with Creating graphs with scalars
Traj Command ErrorI am using MP 14 ver. and was able to use traj. command until a couple of months ago. Now I see the …
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
Customization of Bar GraphI have created a stacked bar graph to look at my main categorical variable which has Yes/No Response…
DiagonalI am modelling a huge database and I have to create a new variable that contains the value of the di…
Bar chart when one category is extremely frequentThis is a question on data visualization in Stata, but also relevant for other software. I have a da…
Subscribe to:
Post Comments (Atom)
0 Response to Creating graphs with scalars
Post a Comment