fsolt / dotwhisker

Dot-and-Whisker Plots of Regression Results
https://fsolt.org/dotwhisker/
Other
57 stars 10 forks source link

big dodge_size -> wrong brackets #113

Open StefanMunnes opened 1 year ago

StefanMunnes commented 1 year ago

Hello, thanks for the great package. I struggeld the last three days finding an error: Values of dodge_size >= 1 mess up the brackets. There should at least be a note in the documentation.

data("mtcars")

m1 <- lm(mpg ~ wt + disp, data = mtcars)
m2 <- lm(mpg ~ wt + disp + cyl + gear, data = mtcars)

dwplot(list(m1, m2), dodge_size = 1) %>%
  add_brackets(list(c("G1", "wt", "disp"), c("G2", "cyl", "gear")))

plot