convertAesVar: Convert aesthetic variable for patient profile visualization.

View source: R/miscellaneous.R

convertAesVarR Documentation

Convert aesthetic variable for patient profile visualization.

Description

This converts the empty values (”) to NA. The variable is then converted as a factor.
Missing values are also included in the levels of the factor, to ensure that missing values are displayed in the legend of the plot.

Usage

convertAesVar(data, var)

Arguments

data

data.frame with data

var

variable of data with aesthetic

Value

updated factor var variable

Author(s)

Laure Cougnaud


patientProfilesVis documentation built on Nov. 18, 2022, 5:12 p.m.