Skip to content

Vector graphic export produces hundreds of x-axes #137

@juhalainen

Description

@juhalainen

Thank you for a great package! I am currently in the process of switching to estimation statistics instead of ANOVA and pairwise comparisons.

I usually export plots as vector graphics (.pdf, .svg, .eps, et c.) and edit them in Affinity designer before publication. There is a strange bug when I export dabest-plots as vector graphics (I have tried .pdf and .svg): multiple groups containing hundreds of x-axes are produced. This means the vector files become very heavy for Affinity designer, and I have to delete all of these vectors manually.

data("ToothGrowth")
df <- ToothGrowth
df$dose = as.factor(df$dose)

est_df <- 
  df %>%
  dabest(dose, len, 
         idx = c("0.5","1", "2"),
         paired = FALSE
         )

est_df.mean_diff <- est_df %>% mean_diff()

estdfplot<-plot(est_df.mean_diff, 
     rawplot.type = "swarmplot")

estdfplot

ggsave(filename = "tooth.pdf")

Created on 2023-03-01 with reprex v2.0.2

When opening the vector graphics file in Affinity designer, it contains multiple x-axes:

Screenshot 2023-03-01 at 08 58 33

Each group contains hundreds of duplicate vectors:

Screenshot 2023-03-01 at 08 58 44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions