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
catplot - how to show n to the left of the bars, percentages within bars, and mean values outside the bars (to the right)Dear all, I am using the community-contributed command catplot from SSC in Stata 16.1 in order to p…
One line code for performing arithmetic operation (here multiplication) while merging two datasetsSuppose, I have two datasets given below, now how can I merge the datasets so that resulting values …
recovering the estimate of an interaction term using margins when the base level of all zeros is not includedHi Fellow Statalisters, In a recent posting (https://www.statalist.org/forums/forum/general-stata-d…
finding keywords in string variablesDear Statalister I'm working on a dataset and I need to create a dummy variable equals 1 if the str…
doiplot - postestimation module after metan for plots that address asymmetry or heterogeneityDear All There is now a post-estimation command after metan to visualize studies in meta-analysis t…
Subscribe to:
Post Comments (Atom)
0 Response to Admetan | Forest plot formatting
Post a Comment