Comments (2)
Minor changes added to ggsurplot() now. Post-customization of color and fill no longer shows warnings.
# Fit survival curves
library("survival")
fit<- survfit(Surv(time, status) ~ sex, data = lung)
# Default plot
p <- ggsurvplot(fit, risk.table = TRUE,
pval = TRUE, risk.table.y.text.col = TRUE)
print(p)
# Customize
p$plot <- p$plot + ggthemes::scale_color_pander()
print(p)
Thanks,
A. Kassambara
from survminer.
Thanks. Could you link to fix-commit?
You can also mention issue in the commit message like fix for #11
and this commit will appear in the workflow of this issue.
from survminer.
Related Issues (20)
- select_()` was deprecated in dplyr 0.7.0. ℹ Please use `select()` instead.
- Error in xtfrm.data.frame(x) : cannot xtfrm data frames when using ggadjustedcurves
- Adding the 'hjust' argument to line 293 in the 'ggsurvtable.R' file
- Argument event is not working in ggadjustedcurves and surv_adjustedcurves
- cox
- surv_cutpoint when NA survival outcomes exist
- how to retain the confidence interval in plot when try to transform it to plotly object
- `ggsurvplot_facet()` says it supports numeric/text input to `pval` argument, but it doesn't.
- Deprecated functions HOT 1
- ggsurvplot displaying error
- Log Likelihood Ratio P-value incorrectly named as log-rank?
- Number at risk and number censored in the same table using ggsurvplot_combine
- Changing size of "large dash". HOT 1
- surv.median.line triggers warnings in ggplot2 3.5.0 HOT 2
- `surv_fit` doesn't support `weights` parameter
- deprecated feature in survminer
- ggsurvplot gives error when drawing risk table. HOT 3
- pariwise_survdiff throws unusual error when a model with strata is used
- misalignment between the chart and the risk table in ggsurvplot HOT 6
- ggflexsurvplot risk table strata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from survminer.