Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImproving ggforest #178
Improving ggforest #178
Comments
|
Cool, it works for lm and glm as well. |
|
It took me some time to look for some other ideas for forest model plots that will be as nice as the one generated by NikNakk. Will submit a new version of |
|
Ok, great!!!
Le samedi 1 avril 2017, Przemysław Biecek <notifications@github.com
<javascript:_e(%7B%7D,'cvml','notifications@github.com');>> a écrit :
… It took me some time to look for some other ideas for forest model plots
that will be as nice as the one generated by NikNakk. Will submit a new
version of ggforest this weekend.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADKOy8s-JBAN8wrNpCqiTPh8fdn8IUYRks5rrgsUgaJpZM4Mmgec>
.
|
|
Thank you @pbiecek for this great work! Default text size in the I observed that, the hazard ratio axis ticks are not displayed sometimes. It seems to depend on the model. Do you have any idea? For example,
require("survival")
require("survminer")
model <- coxph( Surv(time, status) ~ sex+rx,
data = colon )
ggforest(model)
require("survival")
require("survminer")
model <- coxph( Surv(time, status) ~ sex+rx+adhere,
data = colon )
ggforest(model) |
|
Ticks are not displayed because the scale vary from 0.55 to 1.59 and the 'pretty printing' cannot find nice looking ticks in such narrow range. Having more graphical parameters exposed is a good idea, will do this. |
|
Ok, things are even stranger, since in the first plot the OX scale is more narrow. |
more graphical parameters added plot title removed OX axis
|
the problem was in using scale_x limits instead of coord_ limits |



I just discovered the forestmodel package (https://github.com/NikNakk/forestmodel), which creates forest plots of the coefficients of models produced by lm, glm, survival::coxph
@pbiecek : In ggforest(), I vote for staying focused on survival::coxph. But, how can we improve the output ? shoud we use internally the forestmodel package?