Dotwhisker package


I wonder if anyone could give me advice on how to set limits of x-axis in dwplot() of dotwhisker package which is based on ggplot?

Many thanks,


Using xlim like this?

# from

# run a regression compatible with tidy
m1 <- lm(mpg ~ wt + cyl + disp + gear, data = mtcars)

# draw a dot-and-whisker plot
dwplot(m1) +
  xlim(-20, 10) # set x limits.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.