plotSexDistributions: Plots the sex distributions using the sex features

View source: R/CharacterizationPlots.R

plotSexDistributionsR Documentation

Plots the sex distributions using the sex features

Description

Creates bar charts for the target.

Usage

plotSexDistributions(sexData)

Arguments

sexData

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

Details

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

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(), plotAgeDistributions(), viewIncidenceRate()

Examples

conDet <- getExampleConnectionDetails()

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

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


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