Description Usage Arguments Value Examples
View source: R/populationAge.R
Given an object of class comoRbidity
the age distribution of your patients
of interest (those that have at least one code of the ones contained in indexDiseaseCodes.txt
file) is represent comparing with the age distribution of the your whole patients
database.
1 2 3 | populationAge(input, codesPth, databasePth, type = "together",
disorderColor = "gold", allColor = "darkblue", interactive = FALSE,
verbose = FALSE, warnings = TRUE)
|
input |
A comorbidity object, obtained with the query function. |
codesPth |
Determines the path where the file with the index diseases is located (indexDiseaseCode) |
databasePth |
Determines the path where the three required input files (patientData, diagnosisData, admissionData) are located. |
type |
by Befault |
disorderColor |
Determines the bar color representing the disorder patients.
By default |
allColor |
Determines the bar color representing the whole population.
By default |
interactive |
Determines if the output barplot is interactive or not.
By default the |
verbose |
By default |
warnings |
By default |
A barplot comparing the ages distributions
1 2 3 4 5 6 | load(system.file("extdata", "comorbidity.RData", package="comoRbidity"))
popAge <- populationAge( input = comor_obj,
codesPth = system.file("extdata", package="comoRbidity"),
databasePth = system.file("extdata", package="comoRbidity"),
type = "separate"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.