View source: R/plotMeasurementValueAsNumeric.R
| plotMeasurementValueAsNumber | R Documentation |
Plot summariseMeasurementTiming results.
plotMeasurementValueAsNumber(
result,
x = "unit_concept_name",
plotType = "boxplot",
facet = c("codelist_name", "concept_name"),
colour = c("cdm_name", "unit_concept_name", visOmopResults::strataColumns(result)),
style = NULL
)
result |
A summarised_result object. |
x |
Columns to use as horizontal axes. See options with 'visOmopResults::plotColumns(result)'. |
plotType |
Type of plot, either "boxplot", "barplot", or "densityplot". |
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. |
A ggplot.
library(MeasurementDiagnostics)
cdm <- mockMeasurementDiagnostics()
result <- summariseMeasurementUse(
cdm = cdm,
bySex = TRUE,
codes = list("test_codelist" = c(3001467L, 45875977L))
)
plotMeasurementValueAsNumber(result)
CDMConnector::cdmDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.