get_cvgrphs: Get Covariate Plots

Description Usage Arguments Value

View source: R/comparisons.R

Description

This internal function obtains the covariate plots for gformula_survival, gformula_continuous_eof, and gformula_binary_eof.

Usage

1
get_cvgrphs(x, covnames, covtypes, xlab, ylab_cov)

Arguments

x

Object of class "gformula_survival", "gformula_continuous_eof", or "gformula_binary_eof".

covnames

Vector of character strings specifying the names of the time-varying covariates to be plotted. The ordering of covariates given here is used in the plot grid.

covtypes

Vector of character strings specifying the "type" of each time-varying covariate included in covnames. The possible "types" are: "binary", "normal", "categorical", "bounded normal", "zero-inflated normal", "truncated normal", "absorbing", "categorical time", and "custom".

xlab

Character string for the x axes of all plots.

ylab_cov

Vector of character strings for the y axes of the plots for the covariates. This argument must be the same length as covnames. The i-th element of this argument corresponds to the plot for the i-th element of covnames.

Value

A list of covariate plots.


gfoRmula documentation built on July 13, 2021, 9:07 a.m.