-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow Inf and near 0 CIs to plot in ggforest #582
base: master
Are you sure you want to change the base?
Conversation
conf.high <- conf.low <- estimate <- NULL | ||
stopifnot(inherits(model, "coxph")) | ||
|
||
# get data and variables/terms from cox model | ||
data <- .get_data(model, data = data) | ||
data <- survminer:::.get_data(model, data = data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
survminer::: should be removed
var <- names(terms)[i] | ||
#### ADD with = FALSE because error during testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a data.table version thing, data.table version is 1.14.0
toShowExpClean <- toShowExpClean[nrow(toShowExpClean):1, ] | ||
|
||
# get min/max CI values to place where Inf would be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get min/max CI values and replace near 0 and Inf values with those
Meant to fix my issue (#570). During axis ticks generation, if there are any near 0 or Inf values, they are set to the min and max values across all confidence intervals.
Things I thought would be nice but didn't know how to include.
I was planning on just adding that in Adobe Illustrator, but, that might be something that could be done by ggplot2.
Apologies about all the changes, my linter in Visual Studio Code seemed to take over