
Plot the concept counts of a summariseConceptSetCounts output.
Source:R/plotConceptSetCounts.R
plotConceptSetCounts.Rd
Plot the concept counts of a summariseConceptSetCounts output.
Arguments
- 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:
visOmopResults::tidyColumns()
.- colour
Columns to colour by. See possible columns to colour by with:
visOmopResults::tidyColumns()
.
Examples
# \donttest{
library(dplyr)
#>
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#>
#> filter, lag
#> The following objects are masked from ‘package:base’:
#>
#> intersect, setdiff, setequal, union
cdm <- mockOmopSketch()
result <- summariseConceptSetCounts(
cdm = cdm,
conceptSet = list(
"asthma" = c(4051466, 317009) ,
"rhinitis" = c(4280726, 4048171, 40486433)
)
)
#> Warning: `summariseConceptSetCounts()` was deprecated in OmopSketch 0.5.0.
#> Warning: ! `codelist` casted to integers.
#> ℹ Searching concepts from domain condition in condition_occurrence.
#> ℹ Counting concepts
result |>
filter(variable_name == "Number subjects") |>
plotConceptSetCounts(facet = "codelist_name", colour = "standard_concept_name")
#> Warning: `plotConceptSetCounts()` was deprecated in OmopSketch 0.5.0.
PatientProfiles::mockDisconnect(cdm)
# }