Skip to content

Commit

Permalink
Add support for ggcoefplot (#28)
Browse files Browse the repository at this point in the history
* Support ggcoefplot

* Document

* Add Laurent as contributor

* Update email

* Update DESCRIPTION

* Fix author formatting

* Fix description

* Add tests

* Fix zero line logic

* Fix dictionary logic for ggiplot and updated examples.

- Dictionary should only be applied at plot time (driectly swapping out the labels), since we need to preserve the continuous order for event studies.
- Examples now more directly follow the original coefplot/iplot help docs.

* Ignore cruft

* docs

* Update README

* Update README

* NEWS
  • Loading branch information
grantmcdermott authored Dec 4, 2023
1 parent da848be commit b8efe05
Show file tree
Hide file tree
Showing 29 changed files with 2,102 additions and 284 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
^docs$
^pkgdown$
^\.github$
^TESTING$
^.vscode$
34 changes: 21 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
Package: ggiplot
Title: ggplot2 Equivalents of fixest::iplot()
Version: 0.0.1.9010
Title: ggplot2 equivalents of fixest's `iplot` and `coefplot` functions
Version: 0.0.1.9011
Authors@R:
person(given = "Grant",
family = "McDermott",
role = c("aut", "cre"),
email = "grantmcd@uoregon.edu",
comment = c(ORCID = "0000-0001-7883-8573"))
Description: Provides ggplot2 equivalents of fixest::iplot() for producing
"event study" plots. Enables some additional functionality and convenience
features, including grouped mutli_fixest object facetting and programatic
updating of existing plots (e.g. themes and aesthetics).
c(person(given = "Grant",
family = "McDermott",
role = c("aut", "cre"),
email = "gmcd@amazon.com",
comment = c(ORCID = "0000-0001-7883-8573")),
person(given = "Laurent",
family = "Berge",
role = "ctb",
email = "laurent.berge@u-bordeaux.fr")
)
Description: Provides ggplot2 equivalents of fixest::iplot and fixest::coefplot
for producing nice "event study" and coefficient plots, respectively. Enables
some additional functionality and convenience features, including grouped
multi-fixest object faceting and programatic updating of existing plots
(e.g., themes and aesthetics).
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.2.3.9000
URL: http://grantmcdermott.com/ggiplot/
BugReports: https://github.com/grantmcdermott/ggiplot/issues
Remotes: lrberge/fixest
Depends:
ggplot2 (>= 2.2.0)
Imports:
fixest (>= 0.11.0),
fixest (>= 0.11.2),
dreamerr,
ggh4x,
scales,
utils,
marginaleffects (>= 0.10.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by roxygen2: do not edit by hand

export(aggr_es)
export(ggcoefplot)
export(ggiplot)
export(iplot_data)
import(ggplot2)
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# ggiplot 0.0.1.9010 (development version)
# ggiplot 0.0.1.9011 (development version)

## New features

- Support for `ggcoefplot`, a ggplot equivalent of `coefplot` (#28).
- Support `keep` and `drop` arguments for subsetting coefficients (#22).

## Bug fixes and breaking changes
Expand Down
Loading

0 comments on commit b8efe05

Please sign in to comment.