ggpairs

ggpairs plot with heatmap of correlation values with significance stars and custom theme

别等时光非礼了梦想. 提交于 2020-06-13 05:54:20
问题 I would like to create a correlation plot with ggPairs() which should contain a heat map of correlation values (as in this SO question) significance stars for the correlation (as in this SO question) font type and font size according to a custom theme. Based on the excellent solutions provided by @user20650 to the above mentioned SO questions, I succeeded in building a function to generate a heatmap of correlation values with significance stars. Unfortunately, when adding the (custom) theme,

Change axis labels of a modified ggpairs plot (heatmap of correlation)

六月ゝ 毕业季﹏ 提交于 2020-04-16 03:57:06
问题 I wanted to combine a ggpairs plot with a heatmap and found a wonderful solution: ggpairs plot with heatmap of correlation values #library library(GGally) library(ggplot2) #data sample_df <- data.frame(replicate(7,sample(0:5000,100))) colnames(sample_df) <- c("KUM", "MHP", "WEB", "OSH", "JAC", "WSW", "gaugings") #function for heatmap my_fn <- function(data, mapping, method="p", use="pairwise", ...){ # grab data x <- eval_data_col(data, mapping$x) y <- eval_data_col(data, mapping$y) #