Skip to content

Commit

Permalink
fix #488: turning off the message 'geom_smooth() using formula 'y ~ x''
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Nov 22, 2022
1 parent c25039d commit 38d95f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Enable faceting by column names with spaces (#391)
- Licence changed to GPL (>= 2) (#482)
- `desc_statby()` doc updated to clarify the difference between SD (standard deviation) and SE (standard error) (#492)
- The message `geom_smooth() using formula 'y ~ x'` is now turned off in `ggscatter()`(#488)


## Bug fixes
Expand Down
1 change: 1 addition & 0 deletions R/ggscatter.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ ggscatter_core <- function(data, x, y,
mapping <- .args$mapping
option <- .args$option
option[["method"]] <- add
option[["formula"]] <- y ~ x
option[["mapping"]] <- create_aes(mapping)
p <- p + do.call(geom_smooth, option)
}
Expand Down

0 comments on commit 38d95f2

Please sign in to comment.