feat: new cut option to simplify factors to only the top N levels

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-10-21 21:30:07 +03:00
commit 0c2b061708
No known key found for this signature in database
12 changed files with 337 additions and 236 deletions

View file

@ -10,6 +10,7 @@ plot_sankey_single(
sec,
color.group = c("pri", "sec"),
colors = NULL,
missing.level = "Missing",
...
)
}
@ -40,4 +41,7 @@ data.frame(
mtcars |>
default_parsing() |>
plot_sankey_single("cyl", "vs", color.group = "pri")
stRoke::trial |>
default_parsing() |>
plot_sankey_single("diabetes", "hypertension")
}