EVOLUTION-MANAGER
Edit File: hchart.survfit.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Plot survival curves using Highcharts</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for hchart.survfit {highcharter}"><tr><td>hchart.survfit {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Plot survival curves using Highcharts</h2> <h3>Description</h3> <p>Plot survival curves using Highcharts </p> <h3>Usage</h3> <pre> ## S3 method for class 'survfit' hchart( object, ..., fun = NULL, markTimes = TRUE, symbol = "plus", markerColor = "black", ranges = FALSE, rangesOpacity = 0.3 ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>A survfit object as returned from the <code>survfit</code> function</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Extra parameters to pass to <code>hc_add_series</code> function</p> </td></tr> <tr valign="top"><td><code>fun</code></td> <td> <p>Name of function or function used to transform the survival curve: <code>log</code> will put y axis on log scale, <code>event</code> plots cumulative events (f(y) = 1-y), <code>cumhaz</code> plots the cumulative hazard function (f(y) = -log(y)), and <code>cloglog</code> creates a complimentary log-log survival plot (f(y) = log(-log(y)) along with log scale for the x-axis.</p> </td></tr> <tr valign="top"><td><code>markTimes</code></td> <td> <p>Label curves marked at each censoring time? TRUE by default</p> </td></tr> <tr valign="top"><td><code>symbol</code></td> <td> <p>Symbol to use as marker (plus sign by default)</p> </td></tr> <tr valign="top"><td><code>markerColor</code></td> <td> <p>Color of the marker ("black" by default); use NULL to use the respective color of each series</p> </td></tr> <tr valign="top"><td><code>ranges</code></td> <td> <p>Plot interval ranges? FALSE by default</p> </td></tr> <tr valign="top"><td><code>rangesOpacity</code></td> <td> <p>Opacity of the interval ranges (0.3 by default)</p> </td></tr> </table> <h3>Value</h3> <p>Highcharts object to plot survival curves </p> <h3>Examples</h3> <pre> # Plot Kaplan-Meier curves require("survival") leukemia.surv <- survfit(Surv(time, status) ~ x, data = aml) hchart(leukemia.surv) # Plot the cumulative hazard function lsurv2 <- survfit(Surv(time, status) ~ x, aml, type = "fleming") hchart(lsurv2, fun = "cumhaz") # Plot the fit of a Cox proportional hazards regression model fit <- coxph(Surv(futime, fustat) ~ age, data = ovarian) ovarian.surv <- survfit(fit, newdata = data.frame(age = 60)) hchart(ovarian.surv, ranges = TRUE) </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>