View source: R/plotConceptSetCounts.R
| plotConceptSetCounts | R Documentation |
plotConceptSetCounts(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(dplyr)
library(OmopSketch)
library(omock)
cdm <- mockCdmFromDataset(datasetName = "GiBleed", source = "duckdb")
result <- summariseConceptSetCounts(
cdm = cdm,
conceptSet = list(
"asthma" = c(4051466, 317009),
"rhinitis" = c(4280726, 4048171, 40486433)
)
)
result |>
filter(variable_name == "Number subjects") |>
plotConceptSetCounts(
facet = "codelist_name",
colour = "standard_concept_name"
)
cdmDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.