1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 14:01:55 +02:00

support groups for portion_df, update README

This commit is contained in:
2018-08-12 22:34:03 +02:00
parent e5d32cafe0
commit ce2cdb9309
12 changed files with 215 additions and 100 deletions

View File

@ -32,4 +32,13 @@ test_that("ggplot_rsi works", {
expect_error(geom_rsi(x = "test"))
expect_error(facet_rsi(facet = "test"))
# support for groups
print(
septic_patients %>%
select(hospital_id, amox, cipr) %>%
group_by(hospital_id) %>%
ggplot_rsi() +
facet_grid("hospital_id")
)
})