generated ggpairs plots finally
This commit is contained in:
parent
b68841b337
commit
a3e5283a9b
11 changed files with 657 additions and 939 deletions
|
@ -21,12 +21,19 @@ png('~/tmp/foo.png',
|
|||
units="in",
|
||||
res=300)
|
||||
#
|
||||
corr_plotting_df = corr_df_ps
|
||||
|
||||
|
||||
ggpairs(corr_plotting_df, columns = 1:(ncol(corr_plotting_df)-1),
|
||||
#corr_plotting_df = corr_df_ps
|
||||
colnames(corr_plotdf)
|
||||
corr_plotting_df = subset(corr_plotdf, select = -c(ethambutol,`Log10(OR)`,`-Log10(P)`, ASA, RSA, KD, RD
|
||||
, FoldX
|
||||
, DeepDDG
|
||||
, Dynamut2 ))
|
||||
colnames(corr_plotting_df)
|
||||
#ggpairs(corr_plotting_df, columns = 1:(ncol(corr_plotting_df)-1),
|
||||
ggpairs(corr_plotting_df, columns = 1:(ncol(corr_plotting_df)),
|
||||
|
||||
upper = list(continuous = wrap('cor',
|
||||
method = "spearman",
|
||||
use = "pairwise.complete.obs",
|
||||
title="ρ",
|
||||
digits=2,
|
||||
title_args=c(colour="black")
|
||||
|
@ -36,7 +43,7 @@ ggpairs(corr_plotting_df, columns = 1:(ncol(corr_plotting_df)-1),
|
|||
continuous = wrap("points", alpha = 0.7, size=0.5),
|
||||
combo = wrap("dot", alpha = 0.7, size=0.5)
|
||||
),
|
||||
aes(colour = factor(ifelse(corr_plotting_df$dst_mode==0, "S", "R")), alpha = 0.5),
|
||||
aes(colour = factor(ifelse(dst_mode==0, "S", "R")), alpha = 0.5),
|
||||
title="Stability") +
|
||||
|
||||
scale_colour_manual(values = c("red", "blue")) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue