Quantcast
Channel: How to change the color palette for GGally::ggpairs? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Rodrigo San Cristóbal Blanco for How to change the color palette...

Adding directly both + scale_fill_manual and + scale_colour_manual after your ggpairs code will work also:ggpairs( diamonds.samp[,1:2], mapping = ggplot2::aes(color = cut), upper = list(continuous =...

View Article



Image may be NSFW.
Clik here to view.

Answer by user20650 for How to change the color palette for GGally::ggpairs?

One solution is to extract each plot from the ggmatrix add a new scale_ and then reassign it back to the matrix.Examplelibrary(GGally)library(ggplot2)data(diamonds, package="ggplot2")diamonds.samp...

View Article

Image may be NSFW.
Clik here to view.

How to change the color palette for GGally::ggpairs?

This is the same question as inUser defined colour palette in R and ggpairs or is there a way to change the color palette for GGally::ggpairs using ggplot?only that the solutions there don't work...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images