View source: R/plotRecordCount.R
| plotRecordCount | R Documentation |
plotRecordCount(result, facet = NULL, colour = NULL)
result |
A summarised_result object (output of
|
facet |
Columns to face by. Formula format can be provided. See possible
columns to face by with: |
colour |
Columns to colour by. See possible columns to colour by with:
|
A plot visualisation.
library(omock)
library(OmopSketch)
cdm <- mockCdmFromDataset(datasetName = "GiBleed", source = "duckdb")
summarisedResult <- summariseRecordCount(
cdm = cdm,
omopTableName = "condition_occurrence",
ageGroup = list("<=20" = c(0, 20), ">20" = c(21, Inf)),
sex = TRUE
)
plotRecordCount(
result = summarisedResult,
colour = "age_group",
facet = sex ~ .
)
cdmDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.