Closed alnajar closed 3 years ago
I have a feeling there is nothing I can do and this is a problem with your installation and not the package. But let's diagnose this. Does this error occur when using bal.plot()
too? What about bal.tab()
? What about other packages that use ggplot2
(e.g., does plot(summary(w.out1))
also produce the error?)? Have you tried restarting R or uninstalling and re-installing cobalt?
Thank you @ngreifer, uninstalling the package, restarting my machine and reinstalling the package got it working. I appreciate your quick response and suggestion. Great package, I always appreciate such work that I depend on for everyday analysis
I started my issue somewhere else https://github.com/cran/cobalt/issues/2#issue-987388137
Using the example in CRAN https://www.rdocumentation.org/packages/cobalt/versions/4.3.0/topics/love.plot
Here is my code and error
library(WeightIt) library(WeightIt); data("lalonde", package = "cobalt") w.out1 <- weightit(treat ~ age + educ + race + married + nodegree + re74 + re75, data = lalonde) love.plot(w.out1, thresholds = c(m = .1), var.order = "unadjusted")
I wonder how if there is a quick fix, thank you!