Hi all,
Im very new user to STATA. I have the code below and am wanting to create a panel of scatter plots by a grouping variable (country).
I cannot seem to find where to add this grouping into the code.
Any help would be appreciated. thanks
twoway (scatter recoverylatitude_c recoverylongitude if conditionaliveordead=="Alive", mcolor(pink) msymbol(square)) ///
(scatter recoverylatitude_c recoverylongitude if conditionaliveordead=="Dead", mcolor(green) msymbol(D)) ///
(scatter recoverylatitude_c recoverylongitude if conditionaliveordead=="Unknown", mcolor(red) msymbol(O)), ///
title("Scatter plot of Recovery Latitude & Recovery Longitude, Finland", size(med)) ///
ytitle("Recovery latitude (degrees)", size(med)) ///
xtitle("Recovery longitude (degrees)", size(med)) ///
legend(label(1 "Alive") label(2 "Dead") label(3 "Unknown") subtitle("Survival Status", size(med)) size(med)) ///
Related Posts with how to add a grouping by variable to the scatter plot to create a panel New user to STATA pls help
boottest with cmp and multiple equationsDear statalist members, I want to use boottest with cmp and mulitple equations, and I don't know ho…
Why can't SEM or GSEM produce fixed effects regressions?Hi all, I have been experimenting with structural equation modelling, and particularly GSEM in long…
Issues with Oaxaca DecompositionHi Community, I am currently doing a group project at university to analyse firm size effects on fe…
Baesyan scatter plotsHello, I am trying to implement my first bayesian panel. For a number a countries and for specific v…
How do I run a model with just coefficients from another datasetDear All, I am trying to validate a risk prediction model using logistic regression on a dataset. I …
Subscribe to:
Post Comments (Atom)
0 Response to how to add a grouping by variable to the scatter plot to create a panel New user to STATA pls help
Post a Comment