univ_forestplot_eumelareg: Forest Plot for Cox Proportional Hazards Model in EuMelaReg...

univ_forestplot_eumelaregR Documentation

Forest Plot for Cox Proportional Hazards Model in EuMelaReg style

Description

This code generates a forest plot from a coxph model.

Usage

univ_forestplot_eumelareg(
  data,
  time,
  status,
  vars,
  main = "Hazard ratio for disease progression or death (95% CI)",
  y_breaks = NULL,
  cpositions = c(0, 0.1, 0.3),
  point.size = 3,
  fontsize = 0.8,
  line.size = 0.7,
  vjust_text = 1.2,
  refLabel = "reference",
  noDigits = 2,
  varnames = NULL,
  ylim = NULL
)

Arguments

data

a dataset used to fit survival curves. If not supplied then data will be extracted from 'fit' object.

time

the time interval from start of observation until date of event (e.g. disease progression or death) or censoring.

status

variable specifying if event occured or data has been censored.

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

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.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.