mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 01:49:39 +02:00
feat: suppress warnings when plotting violin plots
This commit is contained in:
parent
46db0bd5e4
commit
ca65bca2f8
1 changed files with 13 additions and 10 deletions
|
@ -14,6 +14,8 @@ plot_violin <- function(data, pri, sec, ter = NULL) {
|
|||
ds <- list(data)
|
||||
}
|
||||
|
||||
# browser()
|
||||
suppressWarnings({
|
||||
out <- lapply(ds, \(.ds){
|
||||
rempsyc::nice_violin(
|
||||
data = .ds,
|
||||
|
@ -25,5 +27,6 @@ plot_violin <- function(data, pri, sec, ter = NULL) {
|
|||
})
|
||||
|
||||
wrap_plot_list(out, title = glue::glue("Grouped by {get_label(data,ter)}"))
|
||||
})
|
||||
# patchwork::wrap_plots(out,guides = "collect")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue