cran / forestploter

:exclamation: This is a read-only mirror of the CRAN R package repository. forestploter — Create a Flexible Forest Plot. Homepage: https://github.com/adayim/forestploter Report bugs for this package: https://github.com/adayim/forestploter/issues
Other
6 stars 1 forks source link

Multiple CI columns #1

Closed l-magnificence closed 2 years ago

l-magnificence commented 2 years ago

Hi, in your package you describe If the length of the list is larger than then length of ci_column, then the values reused for each column and considered as different groups. So I set the length of the list same as length of ci_column to make four CI columns(don't want one ci_column having two group, just one column one CI), but it occur error. Do you support this plotting? Here is the code

dt <- read.csv(system.file("extdata", "example_data.csv", package = "forestploter"))
dt$`a outcome` <- paste(rep(" ", 20), collapse = " ")
dt$`b outcome` <- paste(rep(" ", 20), collapse = " ")
dt$`c outcome` <- paste(rep(" ", 20), collapse = " ")
dt$`d outcome` <- paste(rep(" ", 20), collapse = " ")

forest(dt[,c(1:3, 19:22)],
       est = list(dt$est_gp1,
                  dt$est_gp2,
                  dt$est_gp3,
                  dt$est_gp4),
       lower = list(dt$low_gp1,
                    dt$low_gp2,
                    dt$low_gp3,
                    dt$low_gp4), 
       upper = list(dt$hi_gp1,
                    dt$hi_gp2,
                    dt$hi_gp3,
                    dt$hi_gp4),
       ci_column = c(4,5,6,7),
       ref_line = 1,
       vert_line = c(0.5, 2),
       nudge_y = 0.2)
Error in xlim[[idx]] : subscript out of bounds
gaborcsardi commented 2 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

l-magnificence commented 2 years ago

OK, Thanks!