Skip to content

Commit

Permalink
bug fixed in ggscatterhist
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Dec 6, 2017
1 parent 8409bf8 commit 998f06c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Expand Up @@ -6,6 +6,8 @@

## Bug fixes

- In `ggscatterhist()` the x variable was plotted two times, on both the plot x & y margins, instead of having, as expected, a) the x variable on the main plot x margin and 2) the y variable on the main plot y margin. This has been now fixed.

# ggpubr 0.1.6

## New features
Expand Down
2 changes: 1 addition & 1 deletion R/ggscatterhist.R
Expand Up @@ -130,7 +130,7 @@ ggscatterhist <- function(

yplot <- ggplot() + margin.params %>%
.add_item(geomfunc = geomfunc, data = data,
x = xplot.x, y = xplot.y, alpha = 0.7) %>%
x = yplot.x, y = yplot.y, alpha = 0.7) %>%
do.call(geom_exec, .)
yplot <- set_palette(yplot, palette)

Expand Down

0 comments on commit 998f06c

Please sign in to comment.