forestplot

Forest Plot, ordering and summarizing multiple variables

独自空忆成欢 提交于 2021-01-29 18:22:46
问题 I have the following data: DF<-structure(list(ref = structure(c(15L, 15L, 16L, 19L, 2L, 12L, 11L, 23L, 6L, 21L, 5L, 13L, 8L, 22L, 26L, 27L, 20L, 17L, 9L, 7L, 24L, 25L, 18L, 1L, 3L, 14L, 16L, 12L, 23L, 6L, 21L, 8L, 22L, 26L, 27L, 20L, 17L, 9L, 7L, 24L, 25L, 18L, 4L, 1L, 14L, 16L, 19L, 2L, 11L, 23L, 21L, 8L, 26L, 27L, 17L, 9L, 7L, 24L, 1L, 10L, 14L), .Label = c("Bob 2012", "Bob 2016", "Arnez 2004", "Smithy 2013", "Smithy 2014", "Smithy 2016", "Carole 2011", "Craig 2014", "Fansa 2008", "Johnson

Forestplot in R. How to add arrows, x axis breaks and extend the x axis?

三世轮回 提交于 2020-05-28 06:56:05
问题 I have created a forestplot using the forestplot package and code below. There are three things I would like to add: Add arrows and text under the x axis (ie. an arrow in either direction explain the association). I have reviewed these posts using a different package. How to add arrows to forest plot in survminer (ggforest) How to add arrows to a forest plot? I would also like to put a break the x axis as I have one variable with a very wide CI. I would also like to extend the negative side

Forestplot in R. How to add arrows, x axis breaks and extend the x axis?

梦想的初衷 提交于 2020-05-28 06:55:48
问题 I have created a forestplot using the forestplot package and code below. There are three things I would like to add: Add arrows and text under the x axis (ie. an arrow in either direction explain the association). I have reviewed these posts using a different package. How to add arrows to forest plot in survminer (ggforest) How to add arrows to a forest plot? I would also like to put a break the x axis as I have one variable with a very wide CI. I would also like to extend the negative side

Color coding error bars in a plotly scatter plot

蹲街弑〆低调 提交于 2020-01-03 13:54:43
问题 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 <- paste0(1:25,":age") effect.sizes <- rnorm(25,0,1) effect.errors <- abs(rnorm(25,0,1)) p.values <- runif(25,0,1) Here's what I'm trying: library(dplyr) plotly::plot_ly(type='scatter',mode="markers",y=~factors,x=~effect.sizes,color=~p.values,colors=grDevices::colorRamp(c("darkred","gray"))) %>%

How to add arrows to forest plot in survminer (ggforest)

瘦欲@ 提交于 2020-01-03 05:38:06
问题 I was wondering if there was a way to add two arrows to the x-axis of a forest plot, similar to what is shown in this example: How to add arrows to a forest plot? (this code does not work on ggforest) Here is the sample code: library(survival) library(survminer) model <- coxph(Surv(time, status) ~ sex + rx + adhere, data = colon ) ggforest(model) colon <- within(colon, { sex <- factor(sex, labels = c("female", "male")) differ <- factor(differ, labels = c("well", "moderate", "poor")) extent <-

Outputting large forestplot with r forestplot package

不想你离开。 提交于 2019-12-12 04:21:02
问题 I am making a forest plot in r using the forestplot package (see https://cran.r-project.org/web/packages/forestplot/forestplot.pdf). I am satisfied with the look of the plot but the problem is that the resolution is not high enough. I have tried various things to increase the size of the plot but no matter what I do, the total plot area always remains the same (even if I can change the size of the text etc). I'm including a couple of figures to illustrate my point. The second is simply

Changing font of part of string in forestplot

笑着哭i 提交于 2019-12-11 16:21:37
问题 Below there is a forestplot, created with the package forestplot in R. enter image description here I created it using the following code: library("forestplot") data(HRQoL) clrs <- fpColors(box="royalblue",line="darkblue", summary="royalblue") tabletext <- cbind(rownames(HRQoL$Sweden), paste("r=", sprintf("%.2f", HRQoL$Sweden[,"coef"]))) forestplot(tabletext, txt_gp = fpTxtGp(label = list(gpar(fontfamily = "Times", fontface="italic"), gpar(fontfamily = "", col = "blue")), ticks = gpar