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

ggsurvplot: Setting x-axis in log scale when plotting the complementary log−log function #171

Closed
kassambara opened this issue Mar 15, 2017 · 4 comments

Comments

@kassambara
Copy link
Owner

@kassambara kassambara commented Mar 15, 2017

(e-mail from a user)

I have a quick question. When plotting the complementary log−log function (ggsurvplot(fit, fun = "cloglog") I would like to have the possibility to put the log scale on the x-axis (default in survival:::plot.survfit()).

@kassambara
Copy link
Owner Author

@kassambara kassambara commented Mar 25, 2017

fixed now:

require("survival")
require("survminer")
fit<- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, data = lung, fun = "cloglog")

rplot03

@kassambara kassambara closed this Mar 25, 2017
kassambara added a commit that referenced this issue Mar 26, 2017
kassambara added a commit that referenced this issue Mar 26, 2017
@fthielen
Copy link

@fthielen fthielen commented Aug 27, 2019

Since one of the newer versions this plot is not rendering anymore and instead I get the following warning message for:

require("survival")
require("survminer")
fit<- survfit(Surv(time, status) ~ sex, data = lung)
ggsurvplot(fit, data = lung, fun = "cloglog")


Warning messages:
1: Transformation introduced infinite values in continuous x-axis 
2: Transformation introduced infinite values in continuous x-axis 
@kassambara
Copy link
Owner Author

@kassambara kassambara commented Aug 27, 2019

it works on my computer using the latest dev version of survminer

@fthielen
Copy link

@fthielen fthielen commented Aug 27, 2019

I tried the same snippet on another computer (Mac) just now under survminer version 0.4.4, 0.4.5 and the dev version 0.4.5.999 and I get the same error message in all versions.

My RStudio version is 1.2.1335 and my R version is 3.6.1

Update:
I just posted a question on StackOverflow

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.