View source: R/EstimationPlots.R
plotCmEstimates | R Documentation |
Creates nice cohort method plots
plotCmEstimates(
cmData,
cmMeta = NULL,
targetName,
comparatorName,
selectedAnalysisId
)
cmData |
The cohort method data |
cmMeta |
(optional) The cohort method evidence synthesis data |
targetName |
A friendly name for the target cohort |
comparatorName |
A friendly name for the comparator cohort |
selectedAnalysisId |
The analysis ID of interest to plot |
Input the cohort method data
Returns a ggplot with the estimates
Other Estimation:
getCMEstimation()
,
getCmDiagnosticsData()
,
getCmMetaEstimation()
,
getSccsDiagnosticsData()
,
getSccsEstimation()
,
getSccsMetaEstimation()
,
plotSccsEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cmEst <- getCMEstimation(
connectionHandler = connectionHandler,
schema = 'main',
targetIds = 1,
outcomeIds = 3
)
plotCmEstimates(
cmData = cmEst,
cmMeta = NULL,
targetName = 'target',
comparatorName = 'comp',
selectedAnalysisId = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.