plotAgeDistributions: Plots the age distributions using the binary age groups

View source: R/CharacterizationPlots.R

plotAgeDistributionsR Documentation

Plots the age distributions using the binary age groups

Description

Creates bar charts for the target.

Usage

plotAgeDistributions(ageData)

Arguments

ageData

The age data extracted using 'getCharacterizationDemographics(type = 'age')'

Details

Input the data returned from 'getCharacterizationDemographics(type = 'age')'

Value

Returns a ggplot with the distributions

See Also

Other Characterization: characterizationCompareBinary(), characterizationCompareContinuous(), getAggregateBinaryRiskFactors(), getAggregateContinuousRiskFactors(), getBinaryCaseSeries(), getBinaryRiskFactors(), getBinaryTargetBaseline(), getCaseCounts(), getCharacterizationCaseSettings(), getCharacterizationDemographics(), getCharacterizationTargetSettings(), getContinuousCaseSeries(), getContinuousRiskFactors(), getContinuousTargetBaseline(), getDechallengeRechallenge(), getDechallengeRechallengeFails(), getIncidenceRates(), getIncidenceTargetSettings(), getNonCaseCounts(), getOutcomesUsedInCharacterization(), getOutcomesUsedInIncidence(), getTargetCounts(), getTargetsUsedInCharacterization(), getTargetsUsedInIncidence(), getTimeToEvent(), plotSexDistributions(), viewIncidenceRate()

Examples

conDet <- getExampleConnectionDetails()

connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)

ageData <- getCharacterizationDemographics(
connectionHandler = connectionHandler, 
schema = 'main',
characterizationTargetId = 10, 
type = 'age'
)

plotAgeDistributions(ageData = ageData)


OhdsiReportGenerator documentation built on Nov. 14, 2026, 1:09 a.m.