I attempt to insert references in a forestplot and superscript the numbers. Here is part of my data and codes, the numbers[23], [22], [9], [21] in the first column is the inserted references:
hr1 | ci.lb1 | ci.ub1 | hr2 | ci.lb2 | ci.ub2 | |||
---|---|---|---|---|---|---|---|---|
Author | HR(95%CI) | |||||||
LM | non-LM | |||||||
Louis 2016[23] | 0.64(0.37,1.1) | 0.68(0.49,0.94) | 0.64 | 0.37 | 1.1 | 0.68 | 0.49 | 0.94 |
Achim 2017[22] | 0.82(0.59,1.14) | 0.72(0.6,0.88) | 0.82 | 0.59 | 1.14 | 0.72 | 0.6 | 0.88 |
Ramalingam et al 2019[9] | 0.82(0.62,1.08) | 0.72(0.62,0.85) | 0.82 | 0.62 | 1.08 | 0.72 | 0.62 | 0.85 |
Cappuzzo et al 2019[21] | 1.04(0.63,1.72) | 0.73(0.57,0.92) | 1.04 | 0.63 | 1.72 | 0.73 | 0.57 | 0.92 |
Borghaei et al 2020[24] | 0.8(0.49,1.31) | 0.61(0.48,0.79) | 0.8 | 0.49 | 1.31 | 0.61 | 0.48 | 0.79 |
Reck M. et al 2021[8] | 0.54(0.34,0.85) | 0.83(0.65,1.06) | 0.54 | 0.34 | 0.85 | 0.83 | 0.65 | 1.06 |
Reck M et al 2021[25] | 0.83(0.57,1.2) | 0.64(0.51,0.8) | 0.83 | 0.57 | 1.2 | 0.64 | 0.51 | 0.8 |
Makoto et al 2021[19] | 0.96(0.58,1.58) | 0.86(0.69,1.06) | 0.96 | 0.58 | 1.58 | 0.86 | 0.69 | 1.06 |
Pooled HR | 0.80(0.70,0.92) | 0.72(0.67,0.78) | 0.8 | 0.7 | 0.92 | 0.72 | 0.67 | 0.78 |
forest<-read.delim("clipboard")
attach(forest)
labeltext <- as.matrix(forest[,1:3])
coef <- with(forest, cbind(hr1, hr2))
low <- with(forest, cbind(ci.lb1, ci.lb2))
high <- with(forest, cbind(ci.ub1, ci.ub2))
library(forestplot)
forestplot(labeltext, mean = coef, lower = low, upper = high, zero = 1, lwd.zero = 2,graph.pos = 2,boxsize = 0.25,align = "l", col=fpColors(box=c("#B30638", "#00549E")),lwd.xaxis=2)
What should I do?