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
Confirmation Factor analysis with panel dataDear Statalist, I am a newbie and I were stuck for some days. I need to run CFA for a panel data w…
How to use a .prn file in stataHey there, I am currently working on my bachelor thesis about economic growth and I downloaded a da…
Fama-Macbeth (1973) with a cross-sectional invariant variableDear all, How do I properly run a Fama-Macbeth regression with a cross-sectional invariant variable…
Look up information from one observation for another (and: Unexpected error in -vlookup-)As part of a matching exercise, I am trying to bring in information from one observation into a diff…
linksDoes this make a link? https://www.google.com/ (yes) …
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