Hello,
I have a series of forest plots, which I need to edit further.
An extract of the code for one of the graphs (thanks to David Fisher) is:
----------
use dataset_children.dta, clear
label variable morphology_group "Morphology"
gsort +midYear +ageH
admetan PE LCI UCI if morphology_group>=31 & morphology_group<=32, study(author) ///
sortby(midYear) by(morphology_group) ///
rcols(country estimator_new midYear age_r) ///
nohet nooverall nosubgroup saving(mydata, replace)
use mydata, clear
replace _LABELS = `"{bf:"' + _LABELS + `"}"' if _USE==0
label variable _ES "%"
label variable _LCI "LCI"
label variable _UCI "UCI"
format %-20s _LABELS
format _ES %2.0f
forestplot, lcols(country) rcols(_ES midYear estimator_new age_r) ///
nostats nowt nobox nulloff leftjustify astext(70) xlabel(0 30 60 90) spacing(4) aspect(1) ///
pointopts(msymbol(t)msize(vsmall)) ciopts(lwidth(vvthin))
----------
I would like to:
1- indent slightly study names (but not the subgroup name in bold);
2- add a grid at the 0,30,60,90 points (possibly separated within each subgroup);
3- right-align the last column on the right;
4- suppress the first column heading on the left.
With the graph editor I was able to add the grid, but I could not find the way to resolve the other points.
Thank you in advance for your reply.
Fabio
Related Posts with Admetan | Forest plot formatting
Merging DatasetsCan I merge two datasets one in long format and one in wide format with each other? Thanks …
Plotting interaction on latent variable after sem/gsemHi Statalist - Longtime reader, first-time poster. I am running an sem/gsem where the latent has 4 i…
How to assign the same value to all members of a group if a condition on a certain variable occures AT LEAST once in the same groupHi Statalist experts, I would need a little help. I'm working with a dataset containing the followi…
File Association problem when changing from Stata 15 to 16 on WIndows 10Hello Stata fellows, I just recently tried to upgrade my Stata 15 to Stata 16 (both installed on a …
Syntax error r(198) when trying to loop an rdrobust command in a matrixDear stata forum, I am writing a paper on the causal effect of compulsory school reforms, expanding…
Subscribe to:
Post Comments (Atom)
0 Response to Admetan | Forest plot formatting
Post a Comment