Closed grantmcdermott closed 3 years ago
Hi Grant, I was just about to write a wrapper of my own to do exactly this because I want to layer some annotations on top of iplot. Thanks for making this public! Best, John
That's really awesome Grant! The problem of how to handle multiple models out of the box sits on my desk for a while now and you've found very nice solutions.
I'm closing but it could be nice to talk about ggplot inclusion at some point. Great work again: creating a public repo+package is really ace.
UPDATE: I ended up porting this to a dedicated (one function!) package here: https://github.com/grantmcdermott/ggiplot @lrberge I'm happy to keep this as a separate package or roll it into the main fixest codebase, as you see fit.
Invoking some infamous "this is more of a comment than a question" energy... but see #125 and I'm sure that several other users have wondered about a ggplot2 equivalent of
iplot()
.Personally, I think
iplot()
is fantastic and covers 99% of my needs out-of-the-box. But I recently ran into a situation where hacking the base graphics API to do what I wanted (i.e. grouped faceting of a list of multi_fixest objects) was too much of a PITA. So I ended up writing a thin(ish) wrapper aroundiplot()
that produces ggplot2 objects and can harness the associated infrastructure. The resultingggiplot()
functionpackage can be found here:Some examples borrowing from the intro vignette:
Created on 2021-08-12 by the reprex package (v2.0.0)
Feel free to close immediately. I'm mostly writing this issue so that anyone searching for "ggplot2 equivalent of iplot" will have a reference.