I am trying to display the results of a forest plot of vaccine efficacy trials, with 2 group binary variables, that are combined using log RR.
After using the forestplot transform function (transform(efficacy)) to exponentiate the log relative risk and subtract from 1 to show vaccine efficacy, I cannot suitably modify the axis range or title.
Here is my example code:
Code:
input id HepB3_HBsAg HepB3_HBsAg_neg unvac_HBsAg unvac_HBsAg_neg id HepB3_HBsAg HepB3_HBsAg_neg unvac_HBsAg unvac_HBsAg_neg 1. 2 253 59 416 2. 2 90 19 29 end meta esize HepB3_HBsAg HepB3_HBsAg_neg unvac_HBsAg unvac_HBsAg_neg, esize(lnrratio) studylabel(id) random(sjonkman)
Code:
meta forestplot, transform(Vaccine efficacy: efficacy)
Array
This is what happens if I try to change the axis range using xcale or xlabel using either of these commands:
Code:
meta forestplot, transform(Vaccine efficacy: efficacy) xscale(range(0 1)) meta forestplot, transform(Vaccine efficacy: efficacy) xlabel(0 0.5 1)
If I use untransformed values for the scale range, I can change the range so it is more suitable, but I am unable to change the axis labels:
Code:
meta forestplot, transform(Vaccine efficacy: efficacy) xscale(range(-4.6 -2.3))
Code:
meta forestplot, transform(Vaccine efficacy: efficacy) xscale(range(-4.6 -2.3)) xlabel(0 0.5 1)
It also doesn't work if I use untransformed figures for the xlabels (eg. xlabel(-4.6, -2.3))
Assistance on how to achieve a scale from 0 to 1.0 with suitable x axis labels would be much appreciated.
Alex
0 Response to Meta forestplot: problems with axis range/labels
Post a Comment