Questions tagged [forestplot]
Forest plot is a graph used in statistics that shows both estimates and confidence intervals. The forestplot package in R is a package for creating these.
132
questions
5
votes
2answers
569 views
Color coding error bars in a plotly scatter plot
I'm trying to create a forest plot with R plotly where I want to color code the effect sizes (points) and their error bars by their corresponding p-values.
Here are toy data:
set.seed(1)
factors &...
4
votes
1answer
747 views
Adding Labels in Scientific Notation to Forest Plots Using the metafor package
So I'm doing a meta-analysis using the meta.for package in R. I am preparing figures for publication in a scientific journal and i would like to add p-values to my forest plots but with scientific ...
4
votes
1answer
2k views
Forest plot in ggplot2
I am trying to create a forestplot as found here.
label <- c("X1","X2","X3", "X4", "X5","X6", "X7")
mean <- c(1.09,1.22,1.15,1.13,1.10,1.19, 1.12)
lower <- c(1.07,1.19,1.13,1.11,1.01,1.00,...
3
votes
1answer
953 views
How do you add a footnote if you are using the forestplot R package?
Please forgive the naïve question as I am new to R. I have generated a forest plot using a code that I saw and adapted on R bloggers. I would like to add a footnote but I'm not sure how to do it. I've ...
3
votes
1answer
309 views
How to squeeze rows together in forestplot using forestplot package in R
I'm making a forest plot using the forestplot package in R. I have a lot of white space between the rows in my plot. How can I remove the space, or squeeze the rows together, to make a neater smaller ...
3
votes
1answer
550 views
Adding gaps in data for forest plot in metafor
I'm new to R and working on creating a forest plot with a data set using the metafor package's forest.default implementation ( I only have the x, ci.ub and ci.ub in the data for the forest plot)
I'm ...
3
votes
1answer
94 views
forestplot has unusually large blue dot in graph
Im trying to create a forestplot, but the last row has a giant blue dot, instead of the small dot the other rows have. Any idea how to fix this? these vignettes are what Ive been using to create my ...
2
votes
1answer
2k views
cex.axis doesn't change tick size in forestplot
I'm working on a forestplot with the following data:
library(forestplot)
####With this I create the data for the tabletext###
TE<-as.character(c(-0.05, 0.27, 0.39, 0.21, 0, 0.08, 0.28, 0.23, -0....
2
votes
2answers
1k views
How to add a second vertical line in R package forestplot
I'd like to distinguish between statistical significance (OR = 1.0) and clinical significance (OR = 1.5) in my forest plot. I created this plot using the forestplot package, sample code below. Is ...
2
votes
1answer
215 views
R forestplot does not allow expressions in labeltext with is.summary?
I am using forestplot and would like a superscript in one of my column names. An example of something like this is provided in the forestplot vignette, which I have reproduced below (changing the ...
2
votes
1answer
168 views
How to determine x, y coordinates when adding text in metafor
I’m using the metafor package to create Forest plots in R. I’d like to add text to my plots to create labels using the text() function. I’m wondering what the simplest way is to determine the x,y ...
2
votes
1answer
107 views
How to hide the 95% CI on the forest plot
I am trying a way to hide the information we see on the right side of the forest plot (ES(95% CI).
I am using the metafor package in R.
The code is as follows
library(metafor)
par(mar=c(4,4,1,2))
...
2
votes
2answers
703 views
col and row names in a Forest plot
I don't how to introduce columns and rows names into a forest plot. Here is the dataset:
structure(list(structure(c(5L, 6L, 4L, 3L, 2L, 1L), .Label = c("Austria",
"Denmark", "England", "France", "...
2
votes
0answers
38 views
Forest plot columns with R Plotly Annotations
Typo in code has been fixed so that it should now be reproducible
I am new to posting on StackOverflow so please let me know should my question or example not be clear enough and I will add more ...
2
votes
1answer
64 views
Forest plot using risk ratio and confidence intervals
How to make forest plot like this using risk ratio and confidence intervals with the comparison labels?
I don't want R to automatically group the comparison, I just want to plot the forest plot with ...