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
Wash-in period ITSADear Statlisters. I am using the itsa command to perform an interrupted time series analysis with tw…
Trying to assess yearly coverage for 5-year date ranges, using half (or more) of each year as the cutoff for coverageHi all, I am working with data involving coverage of a 5-year environmental safety plan for various…
CEM with panel dataWhy are some weights bigger than 1 and some weights smaller than 1 when using the CEM command in Sta…
Creating all possible firmpairs within each industryDear Statalist, The following shows a snippet of the dataset used: HTML Code: compid compname …
How do I obtain the parameters for rgamma() from a specified gamma modelI would like to obtains input parameters for the function gamma(a,b), where a is the gamma shape par…
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