<p></p>
<p>  </p>
<div>
<p></p>
<p>We recently released the <a target="_blank" rel="nofollow" href="http://www.sthda.com/english/wiki/survminer-0-3-0">survminer verion 0.3</a>, which includes many new features to help in <a target="_blank" rel="nofollow" href="http://www.sthda.com/english/wiki/survival-analysis"><strong>visualizing</strong> and <strong>sumarizing</strong> <strong>survival analysis</strong></a> results.</p>
<p>In this article, we present a cheatsheet for survminer, created by <a target="_blank" rel="nofollow" href="https://github.com/pbiecek">Przemysław Biecek</a>, and provide an overview of main functions.</p>
<div>
<h2>survminer cheatsheet</h2>
<p>The cheatsheet can be downloaded from <a target="_blank" href="http://www.sthda.com/english/rpkgs/survminer/survminer_cheatsheet.pdf">STHDA</a> and from <a target="_blank" rel="nofollow" href="https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/survminer_cheatsheet.pdf">Rstudio</a>. It contains selected important functions, such as:</p>
<ul>
<li><strong>ggsurvplot</strong>() for plotting survival curves</li>
<li><strong>ggcoxzph</strong>() and <strong>ggcoxdiagnostics</strong>() for assessing the assumtions of the Cox model</li>
<li><strong>ggforest</strong>() and <strong>ggcoxadjustedcurves</strong>() for summarizing a Cox model</li>
</ul>
<p>Additional functions, that you might find helpful, are briefly described in the next section.</p>
<p><a href="http://www.sthda.com/english/rpkgs/survminer/survminer_cheatsheet.pdf"><img alt="survminer cheatsheet" src="https://www.r-bloggers.com/../sthda/RDoc/images/survminer-cheatsheet.jpeg"></a></p>
</div>
<div>
<h2>survminer overview</h2>
<p>The main functions, in the package, are organized in different categories as follow.</p>
<p><strong>Survival Curves</strong></p>
<hr>
<ul>
<li>
<p><strong>ggsurvplot</strong>(): Draws survival curves with the ‘number at risk’ table, the cumulative number of events table and the cumulative number of censored subjects table.</p>
</li>
<li>
<p><strong>arrange_ggsurvplots</strong>(): Arranges multiple ggsurvplots on the same page.</p>
</li>
<li>
<p><strong>ggsurvevents</strong>(): Plots the distribution of event’s times.</p>
</li>
<li>
<p><strong>surv_summary</strong>(): Summary of a survival curve. Compared to the default summary() function, surv_summary() creates a data frame containing a nice summary from survfit results.</p>
</li>
<li>
<p><strong>surv_cutpoint</strong>(): Determines the optimal cutpoint for one or multiple continuous variables at once. Provides a value of a cutpoint that correspond to the most significant relation with survival.</p>
</li>
<li>
<p><strong>pairwise_survdiff</strong>(): Multiple comparisons of survival curves. Calculate pairwise comparisons between group levels with corrections for multiple testing.</p>
</li>
</ul>
<p></p>
<p><strong>Diagnostics of Cox Model</strong></p>
<hr>
<ul>
<li>
<p><strong>ggcoxzph</strong>(): Graphical test of proportional hazards. Displays a graph of the scaled Schoenfeld residuals, along with a smooth curve using ggplot2. Wrapper around plot.cox.zph().</p>
</li>
<li>
<p><strong>ggcoxdiagnostics</strong>(): Displays diagnostics graphs presenting goodness of Cox Proportional Hazards Model fit.</p>
</li>
<li>
<p><strong>ggcoxfunctional</strong>(): Displays graphs of continuous explanatory variable against martingale residuals of null cox proportional hazards model. It helps to properly choose the functional form of continuous variable in cox model.</p>
</li>
</ul>
<p></p>
<p><strong>Summary of Cox Model</strong></p>
<hr>
<ul>
<li>
<p><strong>ggforest</strong>(): Draws forest plot for CoxPH model.</p>
</li>
<li>
<p><strong>ggcoxadjustedcurves</strong>(): Plots adjusted survival curves for coxph model.</p>
</li>
</ul>
<p></p>
<p><strong>Competing Risks</strong></p>
<hr>
<ul>
<li><strong>ggcompetingrisks</strong>(): Plots cumulative incidence curves for competing risks.</li>
</ul>
<p></p>
<p><span>Find out more at <a target="_blank" rel="nofollow" href="http://www.sthda.com/english/rpkgs/survminer/">http://www.sthda.com/english/rpkgs/survminer/</a>, and check out the documentation and usage examples of each of the functions in survminer package.</span></p>
</div>
<div>
<h2>Infos</h2>
<p><span> This analysis has been performed using <strong>R software</strong> (ver. 3.3.2). </span></p>
</div>
<p></p>

</div>
<p><br>
</p>
<p></p>
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/owoY0ZVLmes">