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
Replace string value with a missing value (dot)I have a dataset with a variable "sex". I would like to know how can I replace a string value "missi…
Fixed effects in first-differenced modelHi! I have a first-differenced model, where my units are municipalities. I am adding regional fixed…
KHB Method: Obtaining P Value for Mediated Effects I am using the KHB method on STATA to analyze the mediated impacts of religious identity and relig…
Discrepancy for Shapiro-Wilks value between Stata (v15) vs. SPSS 26 and JASP 15.Hello, This is an unusual question as it involves statistical platforms outside of Stata. I'm teach…
Creating Dummy variable with a condition based on the previous 3 yearsDear Stata members, I have a question please , I want to create a new dummy variable =1 if a firm h…
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