Comments (6)
Hi Nikolaj, could you also please upload a plot that is the output and potentially the data source my_surv_kmest
or any similiar dataset that is easy to obtain so we can reproduce this isse?
from survminer.
A simple dataset can show the problem
Time Status Treatment
1 1 1
2 1 2
3 1 1
4 1 2
5 1 1
6 0 2
7 0 1
8 0 2
9 0 1
10 0 2
from survminer.
Here I set the xlim to 20, but can see that the x labels from 10 to 20 are also not shown.
from survminer.
Are they really needed? when list time mark is 10, than what's the point of making x-lim to be 20 : ) ?
from survminer.
I agree with @MarcinKosinski and I'm wondering why one would like to expand x-limits?
I updated ggsurvplot() to handle this situation..
If you still want to do expand xlim, please install the latest version of survminer as follow and try it again.
devtools::install_github("kassambara/survminer")
Please, let us know if it works for you so that we can close this issue.
Best regards,
A.
from survminer.
It now works perfectly, thanks.
Imagine you want to show the survival times of 3 populations. Each population is shown on its own graph in one figure; Figure 1a, b and c. If the survival time differs between the populations, then you set the xlim to the survival time of the population with the longest duration. Then you have a fast an intuitive overview of the survival times of each population. It is standard in scientific publishing (at least where I am publishing).
Thanks again :)
Nikolaj
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.