Skip to content

Commit

Permalink
addin: fix "figure margins too large" error messages; fixes #159
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Mar 31, 2021
1 parent 995eac8 commit 5d51a7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ggExtra
Title: Add Marginal Histograms to 'ggplot2', and More 'ggplot2' Enhancements
Version: 0.9.0.1000
Version: 0.9.0.1001
Authors@R: c(
person("Dean", "Attali", , "[email protected]", role = c("aut", "cre")),
person("Christopher", "Baker", , "[email protected]", role = "aut")
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ggExtra 0.9.1

- Fix #158: addin didn't work when called with a variable name that was also a function (such as `plot`)
- Addin now works when called with a variable name that was also a function (such as `plot`) (#158)
- Addin no longer throws error messages in the console for "figure margins too large" (#159)

# ggExtra 0.9

Expand Down
2 changes: 1 addition & 1 deletion R/ggMarginalGadget.R
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ ggMarginalGadgetHelper <- function(origPlot, addin) {
values$plot
}, height = function() {
if (is.null(input$plotHeight)) {
0
1
} else {
input$plotHeight
}
Expand Down

0 comments on commit 5d51a7f

Please sign in to comment.