Hi,
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,
Jakub
Hi,
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,
Jakub
Using xlim
like this?
# from https://cran.r-project.org/web/packages/dotwhisker/vignettes/dotwhisker-vignette.html
library(dotwhisker)
library(broom)
library(dplyr)
# 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.