View source: R/plotConceptSetCounts.R
plotConceptSetCounts | R Documentation |
Plot the concept counts of a summariseConceptSetCounts output.
plotConceptSetCounts(result, facet = NULL, colour = NULL)
result |
A summarised_result object (output of summariseConceptSetCounts). |
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 ggplot2 object showing the concept counts.
library(dplyr)
cdm <- mockOmopSketch()
result <- cdm |>
summariseConceptSetCounts(
conceptSet = list(
"Renal agenesis" = 194152,
"Manic mood" = c(4226696, 4304866, 37110496, 40371897)
)
)
result |>
filter(variable_name == "Number subjects") |>
plotConceptSetCounts(facet = "codelist_name", colour = "standard_concept_name")
PatientProfiles::mockDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.