This took significant hacking to get the way I wanted it! Mostly setting colours …
## https://stackoverflow.com/questions/37889222/change-colors-in-ggpairs-now-that-params-is-deprecated
ggp1 <- ggpairs(olive2,
lower=list(continuous= function(data,mapping,...) {
(ggally_points(data,mapping,..., size=1)
+ scale_colour_brewer(palette="Dark2")
)
}),
diag = list(continuous=function(data,mapping,...) {
(ggplot(data,mapping)
+ geom_density(...)
+ scale_colour_brewer(palette="Dark2")
)
}),
upper = list(continuous=function(data,mapping, ...) {
(ggally_cor(data,mapping,...)
+ scale_colour_brewer(palette="Dark2")
)
}),
columns=num_cols,
mapping=aes(colour=region))
## https://github.com/ggobi/ggally/issues/14
theme_set(theme_bw()+ theme(panel.spacing=grid::unit(0,"lines")))