Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upenhancement request: allowing different colors for the dots and the whiskers #81
Comments
|
Okay, the development version does this now by reintroducing the whisker_args argument, which we had for a while but dropped at some point. (Note that line_args is just for # loading the library
library(dotwhisker)
#> Loading required package: ggplot2
# linear model of interest
lm_object <- stats::lm(formula = wt ~ am * cyl, data = mtcars)
# creating the plot with dwplot
dwplot(x = lm_object,
dot_args = list(color = "red"), # color for the dot
whisker_args = list(color = "black"), # color for the whisker
vline = ggplot2::geom_vline(xintercept = 0, # put vline _behind_ coefs; see https://github.com/fsolt/dotwhisker/issues/84
colour = "grey60",
linetype = 2,
size = 1))Created on 2018-06-27 by the reprex |
|
fsolt is this available now? I'm trying to use it but not having any luck |

Is there any way to change the color of both
dotand thewhiskerseparately?This is something I can do with
GGally::ggcoef, but I much prefer usingdotwhiskerpackage and so it would be lovely if you can implement this.I am providing a minimal example below:
Created on 2018-06-09 by the reprex package (v0.2.0).