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

Issue/241 ggforest alignment #264

Merged
merged 2 commits into from
Nov 15, 2017
Merged

Issue/241 ggforest alignment #264

merged 2 commits into from
Nov 15, 2017

Conversation

fabian-s
Copy link
Contributor

@fabian-s fabian-s commented Nov 14, 2017

Fixes #241 -- ggforest no longer tries to bolt a table fulll of text to the coefficient plot, instead the annotations are done via ggplot2::annotate, see example below

Thx for the great package

setwd("~/survminer")
library("devtools")
library("survival")

colon <- within(colon, {
  sex <- factor(sex, labels = c("female", "male"))
  differ <- factor(differ, labels = c("well", "moderate", "poor"))
  extent <- factor(extent, labels = c("submuc.", "muscle", "serosa", "contig."))
  })
bigmodel <- coxph( Surv(time, status) ~ sex + rx + adhere + differ + extent + node4,
  data = colon )

# old version:
system("git checkout master")
load_all(".")
ggforest(bigmodel)

image

#new version:
system("git checkout issue/241")
load_all(".")
ggforest(bigmodel)

image

@kassambara kassambara merged commit 7d9def9 into kassambara:master Nov 15, 2017
@fabian-s fabian-s deleted the issue/241 branch November 15, 2017 10:23
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

Successfully merging this pull request may close these issues.

2 participants