Plots the sex distributions using the sex features
Source:R/CharacterizationPlots.R
plotSexDistributions.Rd
Creates bar charts for the target and case sex.
Usage
plotSexDistributions(
sexData,
riskWindowStart = "1",
riskWindowEnd = "365",
startAnchor = "cohort start",
endAnchor = "cohort start"
)
Details
Input the data returned from 'getCharacterizationDemographics(type = 'sex')' and the time-at-risk
See also
Other Characterization:
getBinaryCaseSeries()
,
getBinaryRiskFactors()
,
getCaseBinaryFeatures()
,
getCaseContinuousFeatures()
,
getCaseCounts()
,
getCharacterizationDemographics()
,
getContinuousCaseSeries()
,
getContinuousRiskFactors()
,
getDechallengeRechallenge()
,
getIncidenceRates()
,
getTargetBinaryFeatures()
,
getTargetContinuousFeatures()
,
getTargetCounts()
,
getTimeToEvent()
,
plotAgeDistributions()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver
sexData <- getCharacterizationDemographics(
connectionHandler = connectionHandler,
schema = 'main',
targetId = 1,
outcomeId = 3,
type = 'sex'
)
plotSexDistributions(sexData = sexData)
#> Closing database connection
#> Closing database connection
#> Closing database connection
#> Closing database connection