diagnosticUse: A graphical summary of the code uses.

Description Usage Arguments Value Examples

View source: R/codeUse.R

Description

Given an object of class comorbidity, and the file which contains the codes.

Usage

1
2
diagnosticUse(codesPth, input, barColor = "darkblue", cutOff = 0,
  interactive = FALSE)

Arguments

codesPth

Determines the path where the file with the index diseases is located (indexDiseaseCode)

input

A comorbidity object, obtained applying query function.

barColor

Determines the bar color. By default darkblue.

cutOff

By default 0. Change it to show only those codes with a percentage of use equal or higher than the cutOff value.

verbose

By default FALSE. Change it to TRUE to get a on-time log from the function.

warnings

By default TRUE. Change it to FALSE to don't see the warnings.

Value

A barplot with the diagnosis code uses.

Examples

1
2
3
4
5
6
load(system.file("extdata", "comorbidity.RData", package="comoRbidity"))
diagnosticUse( codesPth    = system.file("extdata", package="comoRbidity"), 
               input       = comor_obj, 
               cutOff      = 0.5, 
               barColor    = "darkcyan"
           )

aGutierrezSacristan/comorbidity documentation built on April 10, 2020, 5:54 p.m.