corrected the pe colour mapping

This commit is contained in:
Tanushree Tunstall 2022-08-24 20:55:36 +01:00
parent 11b936f09b
commit 19b820e316
10 changed files with 61 additions and 90 deletions

View file

@ -2,11 +2,11 @@
# Data: Input
#==============
source("~/git/LSHTM_analysis/config/gid.R")
source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
#cat("\nSourced plotting cols as well:", length(plotting_cols))
source("~/git/LSHTM_analysis/scripts/plotting/get_plotting_dfs.R")
source("/home/tanu/git/LSHTM_analysis/scripts/plotting/plotting_thesis/gid/basic_barplots_gid.R")
source("/home/tanu/git/LSHTM_analysis/scripts/plotting/plotting_thesis/gid/pe_sens_site_count_gid.R")
#cat("\nSourced plotting cols as well:", length(plotting_cols))
#=======
# output

View file

@ -203,27 +203,18 @@ head(str_df_plot_cols)
# colour based on effect
table(str_df_plot_cols$pe_effect_outcome)
# colors = c("#ffd700" #gold
# , "#f0e68c" #khaki
# , "#da70d6"# orchid
# , "#ff1493"# deeppink
# , "#a0522d" #sienna
# , "#d2b48c" # tan
# , "#00BFC4" #, "#007d85" #blue
# , "#F8766D" )# red
pe_colour_map = c("DD_lig" = "#ffd700" # gold
, "SS_lig" = "#f0e68c" # khaki
, "DD_nucleic_acid"= "#a0522d" # sienna
, "SS_nucleic_acid"= "#d2b48c" # tan
, "DD_ppi2" = "#da70d6" # orchid
, "SS_ppi2" = "#ff1493" # deeppink
, "DD_stability" = "#f8766d" # red
, "SS_stability" = "#00BFC4") # blue
pe_colour_map = c("DD_lig" = "#f0e68c" # khaki
, "SS_lig" = "#ffd700" # gold
, "DD_nucleic_acid"= "#d2b48c" # sandybrown
, "SS_nucleic_acid"= "#a0522d" # sienna
, "DD_ppi2" = "#da70d6" # orchid
, "SS_ppi2" = "#ff1493" # deeppink
, "DD_stability" = "#f8766d" # red
, "SS_stability" = "#00BFC4") # blue
#unlist(d[c('a', 'a', 'c', 'b')], use.names=FALSE)
#map the colours