Git Product home page Git Product logo

Comments (3)

ewenharrison avatar ewenharrison commented on July 29, 2024 1

Multiple different models within the same plot is not currently supported. Thanks again.

from finalfit.

ewenharrison avatar ewenharrison commented on July 29, 2024

Thanks for your comments.
We try to make everything possible not not include a bewildering set of options.
So there are no plans to include the option to make univariable forest plots for the reasons you say.

But it is quite straightforward to do and the same method for groups.

p_uni = colon_s %>%
  coxphuni(dependent, explanatory) %>% 
  hr_plot(colon_s, dependent, explanatory, coxfit = .,
          breaks = c(0.5, 1, 1.5, 2),
          dependent_label = "Survival (univariable)", suffix = "",
          plot_opts=list(xlab(""),
                         expand_limits(x = c(0.5, 2.0))))
p_multi = colon_s %>%
  hr_plot(dependent, explanatory,
          breaks = c(0.5, 1, 1.5, 2),
          dependent_label = "Survival (multivariable)", suffix = "",
          plot_opts=list(expand_limits(x = c(0.5, 2.0))))

ggpubr::ggarrange(p_uni, p_multi, ncol = 1)

image

from finalfit.

Tato14 avatar Tato14 commented on July 29, 2024

Thanks for the quick feedback!

Regarding subgroups, I was hoping to add each subgroup in each comparison inside the same plot (and colour them differently) rather than create plots for every condition.

Something like:
image
extracted from here.

Guess I should add geom_errorbarh for every condition and pass it to plot_opts but I am unsure how to place them in each specific condition.

from finalfit.

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.