Description Usage Arguments Value Examples
View source: R/diseasePrevalence.R
Given an object of class comorbidity
, and the characters used to
specify the sex, a barplot showing the disease prevalence in general
and according to sex is obtained.
1 2 3 | diseasePrevalence(input, maleCode = "Male", femaleCode = "Female",
databasePth, barColor = "lightblue", verbose = FALSE,
warnings = TRUE)
|
input |
Object of |
maleCode |
Characters(s) used to determine the male condition of a patient.
Depending on the database it can be determined, for example, as |
femaleCode |
Characters(s) used to determine the female condition of a patient.
Depending on the database it can be determined, for example, as |
databasePth |
Determines the path where the three required input files (patientData, diagnosisData, admissionData) are located. |
barColor |
Determines the bar color. By default |
verbose |
By default |
warnings |
By default |
A barplot with disease prevalence in all the population and according to the sex.
1 2 3 4 5 6 7 | load(system.file("extdata", "comorbidity.RData", package="comoRbidity"))
diseasePrevalence( input = comor_obj,
maleCode = "Male",
femaleCode = "Female",
databasePth = system.file("extdata", package="comoRbidity"),
barColor = "darkcyan"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.