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

Black dots in risk table and problems with risktable height #25

Closed
Feli-Anna opened this issue Mar 21, 2016 · 1 comment
Closed

Black dots in risk table and problems with risktable height #25

Feli-Anna opened this issue Mar 21, 2016 · 1 comment

Comments

@Feli-Anna
Copy link

Hi there,

as I switched to a new laptop, I am now working with the updated version of survminer. I have two problems with the new version:

1.) I have black dots in my risk table (in the line of M1a and M1c). I am simply using the same code as with the last version, but they always show up if I add the risk table. It would be great to know how I can fix this!
This is my command from before:
ggsurvplot(KMfit,pval=TRUE, risk.table=TRUE,risk.table.col = "strata", font.main = c(16, "plain", "black"), font.x = c(16, "plain", "black"), font.y = c(16, "plain", "black"), font.legend = c(14,"plain","black"),main="IVM Stage specific survival",legend="top", legend.title="IVM status",legend.labs=c("M1a", "M1b", "M1c"))

ivm

2.) I have to define the risk.table.height each time now when I use the ggsurvplot command. Before, I could simply run it for 2-3 groups and the default size was fine. Now I get something like in the picture below.
Why is this not working anymore?

jittered
Thank you
Feli

kassambara added a commit that referenced this issue Mar 21, 2016
kassambara added a commit that referenced this issue Mar 21, 2016
@kassambara
Copy link
Owner

Hi,

Thank you for reporting this issue. Points are removed from risk.table now.

Please install the latest version from GitHub and try this:

# Fit (complexe) survival curves
#++++++++++++++++++++++++++++++++++++
library(survminer)
require("survival")
fit2 <- survfit( Surv(time, status) ~ rx + adhere,
                data = colon )

# Visualize
#++++++++++++++++++++++++++++++++++++
ggsurvplot(fit2, pval = TRUE,
          risk.table = TRUE,
          risk.table.col = "strata",
          ggtheme = theme_bw())

Best Regards,
A. KASSAMBARA

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