swehip / slrplotfun

https://swehip.github.io/slrplotfun/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Avoid unneccessary messages #10

Closed eribul closed 3 years ago

eribul commented 3 years ago
 # Style stack with y variable included
> df <- ggplot2::diamonds %>% dplyr::group_by(color, cut) %>%
+   dplyr::summarise(y = dplyr::n())
`summarise()` has grouped output by 'color'. You can override using the `.groups` argument.

specify argument explicitly

eribul commented 3 years ago
> df <- ggplot2::diamonds %>% dplyr::group_by(color, cut) %>%
+   dplyr::summarise(y = dplyr::n())
`summarise()` has grouped output by 'color'. You can override using the `.groups` argument.
eribul commented 3 years ago
> trend_plot(df, 'year', 'prob', y_breaks = 2, y_lim = range(df$prob) * 100)
`geom_smooth()` using formula 'y ~ x'
eribul commented 3 years ago

ändrade de två första men inser att den sista kanske är vettig som den är.