Skip to contents

Creates bar charts for the target.

Usage

plotSexDistributions(sexData)

Arguments

sexData

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

Value

Returns a ggplot with the distributions

Details

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

Examples

conDet <- getExampleConnectionDetails()

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

sexData <- getCharacterizationDemographics(
  connectionHandler = connectionHandler, 
  schema = 'main',
  characterizationTargetId = 10, 
  outcomeId = 3, 
  type = 'sex'
)
plotSexDistributions(sexData = sexData)
#> NULL