
Plot summariseMeasurementTiming results.
plotMeasurementValueAsConcept.RdPlot summariseMeasurementTiming results.
Usage
plotMeasurementValueAsConcept(
result,
x = "count",
y = "codelist_name",
facet = c("cdm_name"),
colour = c("concept_name", "variable_level", visOmopResults::strataColumns(result)),
style = NULL
)Arguments
- result
A summarised_result object.
- x
Columns to use as horizontal axes. See options with `visOmopResults::plotColumns(result)`.
- y
Columns to use as horizontal axes. See options with `visOmopResults::plotColumns(result)`.
- facet
Columns to facet by. See options with `visOmopResults::plotColumns(result)`. Formula input is also allowed to specify rows and columns.
- colour
Columns to color by. See options with `visOmopResults::plotColumns(result)`.
- style
Pre-defined style to apply: "default" or "darwin" - the latter just for gt and flextable. If NULL the "default" style is used.
Examples
# \donttest{
library(MeasurementDiagnostics)
cdm <- mockMeasurementDiagnostics()
#> Warning: ! 2 casted column in measurement as do not match expected column type:
#> • `value_as_concept_id` from numeric to integer
#> • `unit_concept_id` from numeric to integer
result <- summariseMeasurementUse(
cdm = cdm,
bySex = TRUE,
codes = list("test_codelist" = c(3001467L, 45875977L)))
#> → Getting measurement records based on 2 concepts.
#> → Subsetting records to the subjects and timing of interest.
#> → Getting time between records per person.
#> → Summarising results - value as number.
#> → Summarising results - value as concept.
#> → Binding all diagnostic results.
plotMeasurementValueAsConcept(result)
CDMConnector::cdmDisconnect(cdm)
# }