plotRecordCount: Create a ggplot of the records' count trend

View source: R/plotRecordCount.R

plotRecordCountR Documentation

Create a ggplot of the records' count trend

Description

[Deprecated]

Usage

plotRecordCount(result, facet = NULL, colour = NULL)

Arguments

result

A summarised_result object (output of summariseRecordCount()).

facet

Columns to face by. Formula format can be provided. See possible columns to face by with: visOmopResults::tidyColumns().

colour

Columns to colour by. See possible columns to colour by with: visOmopResults::tidyColumns().

Value

A plot visualisation.

Examples


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)



OmopSketch documentation built on Aug. 27, 2026, 5:07 p.m.