Git Product home page Git Product logo

Comments (6)

MarcinKosinski avatar MarcinKosinski commented on August 15, 2024

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.

ngandersen avatar ngandersen commented on August 15, 2024

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

rplot

from survminer.

ngandersen avatar ngandersen commented on August 15, 2024

Here I set the xlim to 20, but can see that the x labels from 10 to 20 are also not shown.

from survminer.

MarcinKosinski avatar MarcinKosinski commented on August 15, 2024

Are they really needed? when list time mark is 10, than what's the point of making x-lim to be 20 : ) ?

from survminer.

kassambara avatar kassambara commented on August 15, 2024

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.

ngandersen avatar ngandersen commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.