Skip to contents

Creates bar charts for the target.

Usage

plotAgeDistributions(ageData)

Arguments

ageData

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

Value

Returns a ggplot with the distributions

Details

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

Examples

conDet <- getExampleConnectionDetails()

connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver

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

plotAgeDistributions(ageData = ageData)
#> NULL