feat: loading of local data was internalised based on the datamods package

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-10-02 11:15:40 +02:00
commit 9c1d6ed630
No known key found for this signature in database
11 changed files with 467 additions and 69 deletions

View file

@ -32,4 +32,19 @@ data.frame(
) |> plot_euler("A", c("B", "C"), "D", seed = 4)
mtcars |> plot_euler("vs", "am", seed = 1)
mtcars |> plot_euler("vs", "am", "cyl", seed = 1)
stRoke::trial |>
dplyr::mutate(
mfi_cut = cut(mfi_6, c(0, 12, max(mfi_6, na.rm = TRUE))),
mdi_cut = cut(mdi_6, c(0, 20, max(mdi_6, na.rm = TRUE)))
) |>
purrr::map2(
c(sapply(stRoke::trial, \(.x)REDCapCAST::get_attr(.x, attr = "label")), "Fatigue", "Depression"),
\(.x, .y){
REDCapCAST::set_attr(.x, .y, "label")
}
) |>
dplyr::bind_cols() |>
plot_euler("mfi_cut", "mdi_cut")
stRoke::trial |>
plot_euler(pri="male", sec=c("hypertension"))
}