get_cvgrphs: Get Covariate Plots

View source: R/comparisons.R

get_cvgrphsR Documentation

Get Covariate Plots

Description

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

Usage

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.


CausalInference/gfoRmula documentation built on Oct. 1, 2024, 8:36 p.m.