Created
February 20, 2018 03:57
-
-
Save gomesfellipe/ec7553ff03d9563bb61182f72e44416b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Funcao para correlacoes | |
my_fn <- function(data, mapping, method="lm", ...){ | |
p <- ggplot(data = data, mapping = mapping) + | |
geom_point() + | |
geom_smooth(method=method, ...) | |
p | |
} | |
data(tips, package = "reshape") | |
# Uso: | |
# Correlaçoes cruzadas | |
ggpairs(tips, lower = list(continuous = my_fn)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment