plot.fat {metamisc} | R Documentation |
Generates a funnel plot for a fitted fat
object.
## S3 method for class 'fat' plot(x, ref, confint = TRUE, confint.level = 0.1, confint.col = "skyblue", confint.density = NULL, xlab = "Effect size", ...)
x |
An object of class |
ref |
A numeric value indicating the fixed or random effects summary estimate. If no value is provided then it will be retrieved from a fixed effects meta-analysis (if possible). |
confint |
A logical indicator. If |
confint.level |
Significance level for constructing the confidence interval. |
confint.col |
The color for filling the confidence interval. Choose |
confint.density |
The density of shading lines, in lines per inch. The default value of |
xlab |
A title for the x axis |
... |
Additional arguments for |
data(Fibrinogen) b <- log(Fibrinogen$HR) b.se <- ((log(Fibrinogen$HR.975) - log(Fibrinogen$HR.025))/(2*qnorm(0.975))) n.total <- Fibrinogen$N.total # A very simple funnel plot plot(fat(b=b, b.se=b.se)) # Add custom tickmarks for the X-axis plot(fat(b=b, b.se=b.se, n.total=n.total, method="M-FIV"), xlab="Hazard ratio", xaxt="n") axis(1, at=c(log(0.5), log(1), log(1.5), log(2), log(3)), labels=c(0.5, 1, 1.5, 2,3))