Hello,
I keep getting the error not a twoway plot type. Was wondering if anyone had any suggestions.
levelsof county, local(cty)
levelsof disease, local(dis)
foreach c of local cty{
foreach d of local dis{
twoway (bar cases year if county=="`c'" & disease=="`d'", yaxis(2) ///
yscale(range(0,2500) axis(2)) ///
ytick(0(500)2500, axis(2)) ///
ylabel(0(500)2500, axis(2))) ///
(line rate1 year if county=="`c'" & disease=="`d'", sort yaxis(1) ///
yscale(range(0,35) axis(1)) ///
ytick(0(5)35, axis(1)) ///
ylabel(0(5)35, axis(1))) ///
(rcap lower_95__ci upper_95__ci year if county=="`c'" & disease=="`d'", yaxis(1) ///
yscale(range(0,35) axis(1)) ///
ytick(0(5)35, axis(1)) ///
ylabel(0(5)35, axis(1))), ///
scheme(sj) ///
legend(label(1 "Cases") label(2 "Rate") label(3 "95%CI") row(1)) ///
ytitle("Rate, per 100,000 population", axis(1)) ///
title("`d' in `c', 2001-2019") ///
note("Data source: kaggle.com/zayanmakar/infectious-diseases-county-year-and-sex")///
graph export "Output/top5.png", replace ///
putexcel set "Output/GraphFile.xlsx", modify ///
putexcel B`3' = image(Output/top5.png) ///
}
}
Related Posts with Is not a two-way plot type
8 character dateHi, I need an 8 character date in order to use the "estudy" package (it's for the "evdate" option). …
Fixed effects omitted variables due to collinearity (xtreg, fe)Hello everyone, Hope you're well. First of all, I'm new to all of this. I'm struggling to identify …
Latent Class AnalysisHi Statalist I am performing Latent Class Analysis in STATA 14. I am using the following Code: gse…
How to use -graph combine- and typical twoway options with -meta forest-Dear all, I would like to present forest plots side by side, but -meta forest- does not work well w…
System GMM - Interpreting the outputHello, I am estimating whether the total value of stocks traded and credit to the private sector ha…
Subscribe to:
Post Comments (Atom)
0 Response to Is not a two-way plot type
Post a Comment