prepared for auto ellipsis or circle

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-05-05 14:44:05 +02:00
parent 0b8102d25f
commit 1204487836
No known key found for this signature in database

View file

@ -109,6 +109,12 @@ plot_euler <- function(data, pri, sec, ter = NULL, seed = 2103) {
#' ) |> plot_euler_single() #' ) |> plot_euler_single()
#' mtcars[c("vs", "am")] |> plot_euler_single() #' mtcars[c("vs", "am")] |> plot_euler_single()
plot_euler_single <- function(data) { plot_euler_single <- function(data) {
# if (any("categorical" %in% data_type(data))){
# shape <- "ellipse"
# } else {
# shape <- "circle"
# }
data |> data |>
ggeulerr(shape = "circle") + ggeulerr(shape = "circle") +
ggplot2::theme_void() + ggplot2::theme_void() +