Description Usage Arguments Examples
Useful for combining HR and 95CI information from a dataframe used for drawing a forestplot.
1 | hrci(f_data, hr = hr, lci = lci, uci = uci)
|
f_data |
a dataframe containing information for the forestplot |
hr |
hazard ratio; hr by default |
lci |
lower confidence interval; lci by default |
uci |
upper confidence interval; uci by default |
1 2 3 4 5 6 7 8 9 | Create some test data
hr <- seq(0.80, 1.1, by = 0.05)
lci <- hr - 0.1
uci <- hr + 0.1
left_text<- paste0("Left text no ", 1:7)
forest_data <- data.frame(left_text,lci,hr,uci)
forest_data$right_text <- hrci(forest_data)
forestplot(forest_data, hr, lci, uci, left_text, right_text)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.