Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector graphic export produces hundreds of x-axes #137

Open
juhalainen opened this issue Mar 1, 2023 · 1 comment
Open

Vector graphic export produces hundreds of x-axes #137

juhalainen opened this issue Mar 1, 2023 · 1 comment

Comments

@juhalainen
Copy link

juhalainen commented Mar 1, 2023

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

@sunroofgod
Copy link
Collaborator

Hi @juhalainen,

We've recently released a new version of dabestr, 
“Lapis” (v2023.9.12), which adds estimation graphics for four new data types: repeated measures, 2 × 2 designs, proportions, and easy meta-analyses.

dabestr version “Lapis” is a complete rebuild of the original dabestr and as such, unfortunately, v0.3.0 of dabestr and below are now deprecated and will no longer be receiving support.

We strongly recommend upgrading to the latest version (“Lapis”) as soon as possible. This will not only ensure access to the latest features but also expedite the resolution of any issues you may have encountered.

You can find the latest release here and the updated documentation for the package here.

For quick installation, you may refer to the following:

# Install it from CRAN
install.packages("dabestr")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github(repo = "ACCLAB/dabestr", ref = "dev")

If you face any challenges during the update process or have further questions, please don't hesitate to reach out.

We value your feedback and appreciate your continued support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants