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