Survminer 0.4.1
New features
-
New function
ggflexsurvplot()
to create ggplot2-based graphs for flexible survival models. -
The function
ggadjustedcurves()
handles now argumentmethod
that defines how adjusted curves shall be calculated. Withmethod='conditional'|'marginal'
subpopulations are balanced with respect to variables present in the model formula. Withmethod='single'|'average'
the curve represents just the expected survival curves.
Major changes
- The function
ggcoxadjustedcurves()
is replaced byggadjustedcurves()
(#229).
Minor changes
-
The grouping variable to the
ggadjustedcurves()
function is now passed as a name (character) of grouping variable not as a vector with values of grouping variable. -
New argument
font.family
inggsurvtable()
to change the font family in the survival tables - such as risk, cummulative events and censoring tables. For example font.family = "Courier New" (@Swechhya, #245). -
Now, in
ggsurvplot()
the data argument should be strictly provided (@dnzmarcio, #235)
Bug fixes
ggforest()
no longer tries to bolt a table full of text to the coefficient plot (@mmoisse, #241), instead the annotations are done via ggplot2::annotate, see example at: @fabian-s, #264