forestplot_eumelareg | R Documentation |
This code generates a forest plot from a coxph model.
forestplot_eumelareg(
fit,
data = NULL,
vars = NULL,
main = "Hazard ratio for disease progression or death (95% CI)",
y_breaks = NULL,
cpositions = c(0, 0.1, 0.3),
point_size = 4,
fontsize = 1,
line_size = 0.9,
vjust_text = 1.2,
subset = NULL,
refLabel = "reference",
noDigits = 2,
varnames = NULL,
ylim = NULL
)
fit |
an object of class coxph or a list containing a mipo object and a list with number patients for each factor level |
data |
a dataset used to fit survival curves. If not supplied then data will be extracted from 'fit' object. |
vars |
variables that were used in the coxph model |
main |
title of the plot. |
y_breaks |
argument to supply manual y_breaks as a numerical vector. Default is NULL and breaks are set automatically within the function. |
cpositions |
relative positions of first three columns in the OX scale. |
point_size |
Size of mean points. |
fontsize |
relative size of annotations in the plot. Default value: 0.7. |
line_size |
Size of errorbar line. |
vjust_text |
vertical adjustment of text containing information about events, global pvalue, AIC and concordance index |
subset |
Display only specified variables as a subset of cox regression. If multivariable cox model was calculated the results shown are adjusted for all input variables but only the specified subset will be displayed. |
refLabel |
label for reference levels of factor variables. |
noDigits |
number of digits for estimates and p-values in the plot. |
varnames |
Character vector specifying rownames of the table (empty columns should be named with ""). |
ylim |
argument to supply manual y limits as numerical vector of length 2. Default is NULL and limits are set automatically within the function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.