I am using the Auto dataset from the ISLR library and the function ggpairs() from gpairs library to create a scatterplot of all possible combinations of variables. My code is the following:
data(Auto)
setDT(Auto)
ggpairs(Auto[, -c("name"), with = FALSE] ,
lower = list(continuous = wrap("points", color = "red", alpha = 0.5),
combo = wrap("box", color = "orange", alpha = 0.3),
discrete = wrap("facetbar", color = "yellow", alpha = 0.3) ),
diag = list(continuous = wrap("densityDiag", color = "blue", alpha = 0.5) ))+
theme(axis.text.x = element_text(angle = 90, hjust = 1))
There are some issues with this plot:
The axes tick labels are not readable. How could I remove the numbers and possibly rotate the tick lables to be vertical to the axes?
How could I enforce different colors for the combo pairs (categorical - continuous)
Your advice will be appreciated.