Skip to contents

produce an upset plot for drug categories based on output of `summ` applied to multiple prescription series

Usage

make_upset(drugdf, nsets_in = 7, nintersects_in = 8, maxlablength = 22)

Arguments

drugdf

a data.frame as produced by `summ`

nsets_in

passed to nsets of upset()

nintersects_in

passed to nsets of upset()

maxlablength

numeric default to 22, class labels longer than this will be presented via substring

Examples

data(allcls)
thes = lapply(allcls, summ, 3)
for (i in seq_len(length(allcls))) thes[[i]]$id = i
ddf = do.call(rbind, thes)
make_upset(ddf)