I've been searching everywhere on how to replace the diagonal in this correlation plot matrix with the names of my variables...
Is there anyway to do so?
contVar <- c("survived", "age", "sibsp", "parch") ggpairs(na.omit(titanic)[, contVar], diag = list("continuous" = "blankDiag")) Correlation matrix plot
And is it possible to make it with plotly?
Btw, this is what my data looks like
> head(titanic) pclass survived sex age sibsp parch 1 1 1 female 29.00 0 0 2 1 1 male 0.92 1 2 3 1 0 female 2.00 1 2 4 1 0 male 30.00 1 2 5 1 0 female 25.00 1 2 6 1 1 male 48.00 0 0 https://stackoverflow.com/questions/66522776/names-in-diagonal-in-ggpairs-r March 08, 2021 at 08:01AM

没有评论:
发表评论