Skip to content
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

confidence interval ribbon malfunction #275

Closed
wp07 opened this issue Jan 1, 2018 · 2 comments
Closed

confidence interval ribbon malfunction #275

wp07 opened this issue Jan 1, 2018 · 2 comments

Comments

@wp07
Copy link

wp07 commented Jan 1, 2018

Expected behavior

Expect default function of cont.int = TRUE to be geom_ribbon.

Actual behavior

Glitch which is causing CI internal shading to initially malfunction (see attached) by not giving ribbon.I believe this was supposed to be addressed in the 0.4.1 release (which I am using) but is persisting for me. Moreover, the problem is eliminated which use of the autoplot function as well as the conf.int.style = "step" so I there there is something malfunctioning with the default coding here.

Steps to reproduce the problem

Reinstalled newest version of R
Uninstalled and reinstalled survminer package (0.4.1)
Successfully graphed with other functions such as autoplot to isolate problem
screen shot 2018-01-01 at 12 05 50 am
screen shot 2018-01-01 at 12 06 05 am

session_info()

library(survival)
library(ranger)
library(ggplot2)
library(dplyr)
library(ggfortify)
library(readxl)
library(survminer)
library(rms)

fit <- survfit(Surv(time, event) ~group, data = wtsa)

ggsurvplot(
fit,
data = wtsa,
size = 1,
palette = c("blue", "red"),
xlab = "Years",
#risk.table = TRUE,
xlim = c(0:8),
break.time.by = 2,
break.y.by = 0.2,
ylab = "Survival",
conf.int = TRUE,
conf.int.style = "ribbon",
conf.int.alpha = 0.2,
censor = FALSE,
legend = c(0.2, 0.5),
legend.title = "",
legend.labs = c("All", "other"),
ggtheme = theme_classic2())

kassambara added a commit that referenced this issue Jan 10, 2018
@kassambara
Copy link
Owner

fixed now, thanks.

@wp07
Copy link
Author

wp07 commented Jan 11, 2018

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants