View source: R/CharacterizationPlots.R
| plotSexDistributions | R Documentation |
Creates bar charts for the target.
plotSexDistributions(sexData)
sexData |
The sex data extracted using 'getCharacterizationDemographics(type = 'sex')' |
Input the data returned from 'getCharacterizationDemographics(type = 'sex')'
Returns a ggplot with the distributions
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()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
sexData <- getCharacterizationDemographics(
connectionHandler = connectionHandler,
schema = 'main',
characterizationTargetId = 10,
outcomeId = 3,
type = 'sex'
)
plotSexDistributions(sexData = sexData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.